mirror of
https://github.com/reactos/reactos.git
synced 2025-07-13 14:44:13 +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:
parent
c5601a5515
commit
331ed663bf
2 changed files with 3 additions and 3 deletions
|
@ -17,8 +17,7 @@
|
||||||
/* GLOBALS ********************************************************************/
|
/* GLOBALS ********************************************************************/
|
||||||
|
|
||||||
static BOOLEAN ServicesProcessIdValid = FALSE;
|
static BOOLEAN ServicesProcessIdValid = FALSE;
|
||||||
static ULONG_PTR ServicesProcessId = 0;
|
ULONG_PTR ServicesProcessId = 0;
|
||||||
|
|
||||||
ULONG_PTR LogonProcessId = 0;
|
ULONG_PTR LogonProcessId = 0;
|
||||||
|
|
||||||
/* PUBLIC SERVER APIS *********************************************************/
|
/* PUBLIC SERVER APIS *********************************************************/
|
||||||
|
@ -36,7 +35,7 @@ CSR_API(SrvRegisterLogonProcess)
|
||||||
}
|
}
|
||||||
else
|
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",
|
DPRINT1("Current logon process 0x%x, can't deregister from process 0x%x\n",
|
||||||
LogonProcessId, ApiMessage->Header.ClientId.UniqueProcess);
|
LogonProcessId, ApiMessage->Header.ClientId.UniqueProcess);
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
/* Globals */
|
/* Globals */
|
||||||
extern HINSTANCE UserServerDllInstance;
|
extern HINSTANCE UserServerDllInstance;
|
||||||
extern HANDLE UserServerHeap;
|
extern HANDLE UserServerHeap;
|
||||||
|
extern ULONG_PTR ServicesProcessId;
|
||||||
extern ULONG_PTR LogonProcessId;
|
extern ULONG_PTR LogonProcessId;
|
||||||
|
|
||||||
#endif /* __USERSRV_H__ */
|
#endif /* __USERSRV_H__ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue