VirtualBox

Changeset 48351 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Sep 6, 2013 11:43:43 AM (11 years ago)
Author:
vboxsync
Message:

removeOldClassIDs: Close the right handle, 2nd attempt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/win/dllmain.cpp

    r48350 r48351  
    223223            char szProgId[64];
    224224            cbValue = sizeof(szProgId) - 1;
    225             rc = RegQueryValueExA(hkeyClsId, NULL, NULL, NULL, (PBYTE)&szProgId[0], &cbValue);
     225            rc = RegQueryValueExA(hkeyIfProgId, NULL, NULL, NULL, (PBYTE)&szProgId[0], &cbValue);
    226226            if (rc != ERROR_SUCCESS)
    227227                cbValue = 0;
    228228            szProgId[cbValue] = '\0';
    229             RegCloseKey(hkeyClsId);
     229            RegCloseKey(hkeyIfProgId);
    230230            if (strnicmp(szProgId, RT_STR_TUPLE("VirtualBox.")))
    231231                continue;
     
    240240        }
    241241
    242         RegCloseKey(hkeyClassesRoot);
     242        RegCloseKey(hkeyClsId);
    243243    }
    244244}
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