Changeset 23838 in vbox
- Timestamp:
- Oct 16, 2009 10:55:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp
r23837 r23838 202 202 LONG r; 203 203 204 204 /* Check the new path first. */ 205 205 r = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Sun\\VirtualBox Guest Additions", 0, KEY_READ, &hKey); 206 206 #ifdef RT_ARCH_AMD64 … … 234 234 if (pszVer) 235 235 { 236 237 238 236 if (ERROR_SUCCESS == RegQueryValueEx(hKey, "Version", NULL, &dwType, (BYTE*)(LPCTSTR)pszVer, &dwSize)) 237 ppszVer = pszVer; 238 } 239 239 /* Revision. */ 240 240 if (ppszRev) 241 241 { 242 243 244 245 246 247 } 248 242 dwSize = 32; 243 char pszRev = (char*)RTMemAlloc(dwSize); 244 if (ERROR_SUCCESS == RegQueryValueEx(hKey, "Revision", NULL, &dwType, (BYTE*)(LPCTSTR)pszRev, &dwSize)) 245 ppszRev = pszRev; 246 } 247 } 248 rc = RTErrConvertFromWin32(r); 249 249 250 250 if (NULL != hKey)
Note:
See TracChangeset
for help on using the changeset viewer.