Changeset 24390 in vbox
- Timestamp:
- Nov 5, 2009 2:44:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp
r24384 r24390 238 238 VBGLR3DECL(int) VbglR3GetAdditionsVersion(char **ppszVer, char **ppszRev) 239 239 { 240 # 240 #ifdef RT_OS_WINDOWS 241 241 /* 242 242 * Try get the *installed* version first. … … 269 269 270 270 /* Did we get something worth looking at? */ 271 int rc ;271 int rc = VINF_SUCCESS; 272 272 if (r == ERROR_SUCCESS) 273 273 { … … 321 321 else 322 322 rc = VERR_NO_MEMORY; 323 324 if (RT_FAILURE(rc) && ppszVer) 325 { 326 RTStrFree(*ppszVer); 327 *ppszVer = NULL; 328 } 323 329 } 324 330 if (hKey != NULL) … … 335 341 return rc; 336 342 337 # else/* !RT_OS_WINDOWS */343 #else /* !RT_OS_WINDOWS */ 338 344 /* 339 345 * On non-Windows platforms just return the compile-time version string. 340 346 */ 341 347 return vbglR3GetAdditionsCompileTimeVersion(ppszVer, ppszRev); 342 # endif /* !RT_OS_WINDOWS */ 343 } 348 #endif /* !RT_OS_WINDOWS */ 349 } 350
Note:
See TracChangeset
for help on using the changeset viewer.