mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 04:13:35 +00:00
[USERSRV]: Use UlongToHandle and make ServicesProcessId global (will be used later on, for shutdown). Part 2/X
CORE-8322 svn path=/trunk/; revision=65516
This commit is contained in:
@@ -17,8 +17,7 @@
|
||||
/* GLOBALS ********************************************************************/
|
||||
|
||||
static BOOLEAN ServicesProcessIdValid = FALSE;
|
||||
static ULONG_PTR ServicesProcessId = 0;
|
||||
|
||||
ULONG_PTR ServicesProcessId = 0;
|
||||
ULONG_PTR LogonProcessId = 0;
|
||||
|
||||
/* PUBLIC SERVER APIS *********************************************************/
|
||||
@@ -36,7 +35,7 @@ CSR_API(SrvRegisterLogonProcess)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (ApiMessage->Header.ClientId.UniqueProcess != (HANDLE)LogonProcessId)
|
||||
if (ApiMessage->Header.ClientId.UniqueProcess != UlongToHandle(LogonProcessId))
|
||||
{
|
||||
DPRINT1("Current logon process 0x%x, can't deregister from process 0x%x\n",
|
||||
LogonProcessId, ApiMessage->Header.ClientId.UniqueProcess);
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
/* Globals */
|
||||
extern HINSTANCE UserServerDllInstance;
|
||||
extern HANDLE UserServerHeap;
|
||||
extern ULONG_PTR ServicesProcessId;
|
||||
extern ULONG_PTR LogonProcessId;
|
||||
|
||||
#endif /* __USERSRV_H__ */
|
||||
|
||||
Reference in New Issue
Block a user