[SERVICES]

Automatically close handles and unlock database.
Patch by Hermès Bélusca.


See issue #7111 for more details.

svn path=/trunk/; revision=56722
This commit is contained in:
Eric Kohl 2012-06-11 19:32:27 +00:00
parent c8731b39d7
commit 9c1cc14414

View file

@ -5943,11 +5943,15 @@ void __RPC_USER midl_user_free(void __RPC_FAR * ptr)
void __RPC_USER SC_RPC_HANDLE_rundown(SC_RPC_HANDLE hSCObject)
{
/* Close the handle */
RCloseServiceHandle(&hSCObject);
}
void __RPC_USER SC_RPC_LOCK_rundown(SC_RPC_LOCK Lock)
{
/* Unlock the database */
RUnlockServiceDatabase(&Lock);
}