Fix lock handle typecasts.

svn path=/trunk/; revision=36540
This commit is contained in:
Eric Kohl 2008-09-26 20:25:47 +00:00
parent a3767e4fc3
commit e7b8601c22
2 changed files with 2 additions and 2 deletions

View file

@ -728,7 +728,7 @@ DWORD RLockServiceDatabase(
// return ScmLockDatabase(0, hMgr->0xC, hLock);
/* FIXME: Lock the database */
*lpLock = (void *)0x12345678; /* Dummy! */
*lpLock = (SC_RPC_LOCK)0x12345678; /* Dummy! */
return ERROR_SUCCESS;
}

View file

@ -2408,7 +2408,7 @@ UnlockServiceDatabase(SC_LOCK ScLock)
{
/* Call to services.exe using RPC */
dwError = RUnlockServiceDatabase(BindingHandle,
(SC_RPC_LOCK)ScLock);
(LPSC_RPC_LOCK)&ScLock);
}
_SEH_HANDLE
{