VirtualBox

Changeset 21150 in vbox for trunk


Ignore:
Timestamp:
Jul 2, 2009 10:16:15 AM (16 years ago)
Author:
vboxsync
Message:

VBoxService/common: Fixed Guest Additions version lookup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo-win.cpp

    r20721 r21150  
    266266                    dwActiveSession = g_pfnWTSGetActiveConsoleSessionId();
    267267
    268                 /*VBoxServiceVerbose(3, ("vboxVMInfoThread: Users: Current active session ID: %ld\n", dwActiveSession));*/
     268                /*VBoxServiceVerbose(3, ("Users: Current active session ID: %ld\n", dwActiveSession));*/
    269269
    270270                if (SidTypeUser == ownerType)
     
    337337    DWORD dwType = 0;
    338338
    339     /* First try the old registry path ... */
    340     rc = RegOpenKeyExA (HKEY_LOCAL_MACHINE, "SOFTWARE\\Sun\\xVM VirtualBox 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);
    341341    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);
    345345        if ((rc != ERROR_SUCCESS) && (rc != ERROR_FILE_NOT_FOUND))
    346346        {
     347            /* Nothing seems to exist, print some warning. */
    347348            VBoxServiceError("Failed to open registry key (guest additions)! Error: %d\n", rc);
    348349            return 1;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette