- Timestamp:
- Jul 2, 2009 10:16:15 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo-win.cpp
r20721 r21150 266 266 dwActiveSession = g_pfnWTSGetActiveConsoleSessionId(); 267 267 268 /*VBoxServiceVerbose(3, (" vboxVMInfoThread:Users: Current active session ID: %ld\n", dwActiveSession));*/268 /*VBoxServiceVerbose(3, ("Users: Current active session ID: %ld\n", dwActiveSession));*/ 269 269 270 270 if (SidTypeUser == ownerType) … … 337 337 DWORD dwType = 0; 338 338 339 /* First try the old registry path ... */340 rc = RegOpenKeyExA (HKEY_LOCAL_MACHINE, "SOFTWARE\\Sun\\ xVMVirtualBox Guest Additions", 0, KEY_READ, &hKey);339 /* Check the new path first. */ 340 rc = RegOpenKeyExA (HKEY_LOCAL_MACHINE, "SOFTWARE\\Sun\\VirtualBox Guest Additions", 0, KEY_READ, &hKey); 341 341 if ((rc != ERROR_SUCCESS) && (rc != ERROR_FILE_NOT_FOUND)) 342 { 343 /* Old registry path does not exist -- maybe the new one does?*/344 rc = RegOpenKeyExA (HKEY_LOCAL_MACHINE, "SOFTWARE\\Sun\\ VirtualBox Guest Additions", 0, KEY_READ, &hKey);342 { 343 /* New path does not exist, check the old one ... */ 344 rc = RegOpenKeyExA (HKEY_LOCAL_MACHINE, "SOFTWARE\\Sun\\xVM VirtualBox Guest Additions", 0, KEY_READ, &hKey); 345 345 if ((rc != ERROR_SUCCESS) && (rc != ERROR_FILE_NOT_FOUND)) 346 346 { 347 /* Nothing seems to exist, print some warning. */ 347 348 VBoxServiceError("Failed to open registry key (guest additions)! Error: %d\n", rc); 348 349 return 1;
Note:
See TracChangeset
for help on using the changeset viewer.