2010-04-16 Ramon Novoa <rnovoa@artica.es>
* windows/pandora_wmi.cc: fixed getOSVersion. Crashed in Windows 2008 and Windows 7. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2572 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
b8566d8123
commit
f5a64d8e9d
|
@ -1,3 +1,8 @@
|
|||
2010-04-16 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* windows/pandora_wmi.cc: fixed getOSVersion. Crashed in Windows 2008
|
||||
and Windows 7.
|
||||
|
||||
2009-12-18 Ramon Novoa <rnovoa@artica.es>
|
||||
|
||||
* windows/pandora_wmi.cc: Fixed bug #2907481.
|
||||
|
|
|
@ -400,9 +400,10 @@ Pandora_Wmi::getOSVersion () {
|
|||
dhGetValue (L"%s", &version, quickfix,
|
||||
L".CSDVersion");
|
||||
|
||||
ret = version;
|
||||
dhFreeString (version);
|
||||
|
||||
if (version != NULL) {
|
||||
ret = version;
|
||||
dhFreeString (version);
|
||||
}
|
||||
} NEXT_THROW (quickfix);
|
||||
} catch (string errstr) {
|
||||
pandoraLog ("getOSVersion error. %s", errstr.c_str ());
|
||||
|
|
Loading…
Reference in New Issue