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:
Ramon Novoa 2010-04-16 13:12:23 +00:00
parent b8566d8123
commit f5a64d8e9d
2 changed files with 9 additions and 3 deletions

View File

@ -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.

View File

@ -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 ());