VirtualBox

Changeset 62101 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jul 7, 2016 11:37:00 AM (8 years ago)
Author:
vboxsync
Message:

VBoxDrvInst: pass the right handle to UnlockServiceDatabase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Installer/VBoxDrvInst.cpp

    r57358 r62101  
    10481048    if (hService != NULL)
    10491049    {
    1050         if (LockServiceDatabase(hSCManager))
     1050        SC_LOCK hSCLock = LockServiceDatabase(hSCManager);
     1051        if (hSCLock != NULL)
    10511052        {
    10521053            if (FALSE == DeleteService(hService))
     
    10721073                _tprintf(_T("Service '%ws' successfully removed!\n"), pszStartStopName);
    10731074            }
    1074             UnlockServiceDatabase(hSCManager);
     1075            UnlockServiceDatabase(hSCLock);
    10751076        }
    10761077        else
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