mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:03:02 +00:00
[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:
parent
c8731b39d7
commit
9c1cc14414
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
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)
|
void __RPC_USER SC_RPC_LOCK_rundown(SC_RPC_LOCK Lock)
|
||||||
{
|
{
|
||||||
|
/* Unlock the database */
|
||||||
|
RUnlockServiceDatabase(&Lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue