Author: ekohl
Date: Fri Sep 26 15:25:47 2008
New Revision: 36540
URL:
http://svn.reactos.org/svn/reactos?rev=36540&view=rev
Log:
Fix lock handle typecasts.
Modified:
trunk/reactos/base/system/services/rpcserver.c
trunk/reactos/dll/win32/advapi32/service/scm.c
Modified: trunk/reactos/base/system/services/rpcserver.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/rpcse…
==============================================================================
--- trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/rpcserver.c [iso-8859-1] Fri Sep 26 15:25:47 2008
@@ -728,7 +728,7 @@
// return ScmLockDatabase(0, hMgr->0xC, hLock);
/* FIXME: Lock the database */
- *lpLock = (void *)0x12345678; /* Dummy! */
+ *lpLock = (SC_RPC_LOCK)0x12345678; /* Dummy! */
return ERROR_SUCCESS;
}
Modified: trunk/reactos/dll/win32/advapi32/service/scm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/service…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/service/scm.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/service/scm.c [iso-8859-1] Fri Sep 26 15:25:47 2008
@@ -2408,7 +2408,7 @@
{
/* Call to services.exe using RPC */
dwError = RUnlockServiceDatabase(BindingHandle,
- (SC_RPC_LOCK)ScLock);
+ (LPSC_RPC_LOCK)&ScLock);
}
_SEH_HANDLE
{