Changeset 23893 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Oct 20, 2009 8:59:51 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp
r23866 r23893 207 207 VBGLR3DECL(int) VbglR3GetAdditionsVersion(char **ppszVer, char **ppszRev) 208 208 { 209 int rc ;209 int rc = VINF_SUCCESS; 210 210 #ifdef RT_OS_WINDOWS 211 211 HKEY hKey; … … 214 214 /* Check the new path first. */ 215 215 r = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Sun\\VirtualBox Guest Additions", 0, KEY_READ, &hKey); 216 # ifdef RT_ARCH_AMD64216 # ifdef RT_ARCH_AMD64 217 217 if (r != ERROR_SUCCESS) 218 218 { … … 220 220 r = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Wow6432Node\\Sun\\VirtualBox Guest Additions", 0, KEY_READ, &hKey); 221 221 } 222 # endif222 # endif 223 223 224 224 /* Still no luck? Then try the old xVM paths ... */ … … 226 226 { 227 227 r = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Sun\\xVM VirtualBox Guest Additions", 0, KEY_READ, &hKey); 228 # ifdef RT_ARCH_AMD64228 # ifdef RT_ARCH_AMD64 229 229 if (r != ERROR_SUCCESS) 230 230 { … … 232 232 r = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Wow6432Node\\Sun\\xVM VirtualBox Guest Additions", 0, KEY_READ, &hKey); 233 233 } 234 # endif234 # endif 235 235 } 236 236 … … 265 265 if (NULL != hKey) 266 266 RegCloseKey(hKey); 267 #else 267 #else /* !RT_OS_WINDOWS */ 268 268 /* On non-Windows platforms just return the compile-time version string atm. */ 269 269 /* Version. */ … … 273 273 if (ppszRev) 274 274 rc = RTStrAPrintf(ppszRev, "%s", VBOX_SVN_REV); 275 #endif /* RT_OS_WINDOWS */276 return rc; 277 } 275 #endif /* !RT_OS_WINDOWS */ 276 return rc; 277 }
Note:
See TracChangeset
for help on using the changeset viewer.