VirtualBox

Changeset 23838 in vbox


Ignore:
Timestamp:
Oct 16, 2009 10:55:57 PM (15 years ago)
Author:
vboxsync
Message:

VBoxClient/VBoxTray/VBgl: Tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp

    r23837 r23838  
    202202    LONG r;
    203203
    204         /* Check the new path first. */
     204    /* Check the new path first. */
    205205    r = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Sun\\VirtualBox Guest Additions", 0, KEY_READ, &hKey);
    206206#ifdef RT_ARCH_AMD64
     
    234234        if (pszVer)
    235235        {
    236                         if (ERROR_SUCCESS == RegQueryValueEx(hKey, "Version", NULL, &dwType, (BYTE*)(LPCTSTR)pszVer, &dwSize))
    237                                 ppszVer = pszVer;
    238                 }
     236            if (ERROR_SUCCESS == RegQueryValueEx(hKey, "Version", NULL, &dwType, (BYTE*)(LPCTSTR)pszVer, &dwSize))
     237                ppszVer = pszVer;
     238        }
    239239        /* Revision. */
    240240        if (ppszRev)
    241241        {
    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);
     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);
    249249
    250250    if (NULL != hKey)
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