projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8731b3
)
[SERVICES]
author
Eric Kohl
<eric.kohl@reactos.org>
Mon, 11 Jun 2012 19:32:27 +0000
(19:32 +0000)
committer
Eric Kohl
<eric.kohl@reactos.org>
Mon, 11 Jun 2012 19:32:27 +0000
(19:32 +0000)
Automatically close handles and unlock database.
Patch by Hermès Bélusca.
See issue #7111 for more details.
svn path=/trunk/; revision=56722
reactos/base/system/services/rpcserver.c
patch
|
blob
|
history
diff --git
a/reactos/base/system/services/rpcserver.c
b/reactos/base/system/services/rpcserver.c
index
6528069
..
a42bc8f
100644
(file)
--- a/
reactos/base/system/services/rpcserver.c
+++ b/
reactos/base/system/services/rpcserver.c
@@
-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);
}