VirtualBox

Changeset 108069 in vbox


Ignore:
Timestamp:
Feb 5, 2025 11:43:53 AM (2 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167349
Message:

Windows/InstallHelper: Resolved some @todos. We should use something more generic (from IPRT probably) there anyway. Later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp

    r108038 r108069  
    10611061        DWORD dwVal = 0;
    10621062        DWORD cbVal = sizeof(dwVal);
    1063         DWORD dwValueType = REG_DWORD; /** @todo r=bird: output only parameter, optional, so pointless. */
    1064         lrc = RegQueryValueExW(hKeyVS, L"Installed", NULL, &dwValueType, (LPBYTE)&dwVal, &cbVal);
     1063        lrc = RegQueryValueExW(hKeyVS, L"Installed", NULL /* lpReserved */, NULL /* lpType */, (LPBYTE)&dwVal, &cbVal);
    10651064        if (lrc == ERROR_SUCCESS)
    10661065        {
    10671066            if (dwVal >= 1)
    10681067            {
    1069                 DWORD dwMaj = 0; /** @todo r=bird: It's purdent to initialize values if you don't bother to check the type and size! */
    1070                 lrc = RegQueryValueExW(hKeyVS, L"Major", NULL, &dwValueType, (LPBYTE)&dwMaj, &cbVal);
     1068                DWORD dwMaj;
     1069                lrc = RegQueryValueExW(hKeyVS, L"Major", NULL /* lpReserved */, NULL /* lpType */, (LPBYTE)&dwMaj, &cbVal);
    10711070                if (lrc == ERROR_SUCCESS)
    10721071                {
     
    10741073
    10751074                    DWORD dwMin = 0;
    1076                     lrc = RegQueryValueExW(hKeyVS, L"Minor", NULL, &dwValueType, (LPBYTE)&dwMin, &cbVal);
     1075                    lrc = RegQueryValueExW(hKeyVS, L"Minor", NULL /* lpReserved */, NULL /* lpType */, (LPBYTE)&dwMin, &cbVal);
    10771076                    if (lrc == ERROR_SUCCESS)
    10781077                    {
     
    11301129        DWORD dwVal = 0;
    11311130        DWORD cbVal = sizeof(dwVal);
    1132         DWORD dwValueType = REG_DWORD; /** @todo r=bird: Again, the type is an optional output parameter. pointless to init or pass it unless you check.  */
    1133         lrc = RegQueryValueExW(hKeyCurVer, L"CurrentMajorVersionNumber", NULL, &dwValueType, (LPBYTE)&dwVal, &cbVal);
     1131        lrc = RegQueryValueExW(hKeyCurVer, L"CurrentMajorVersionNumber", NULL /* lpReserved */, NULL /* lpType */, (LPBYTE)&dwVal, &cbVal);
    11341132        if (lrc == ERROR_SUCCESS)
    11351133        {
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