Author: hbelusca
Date: Fri Nov 28 21:08:57 2014
New Revision: 65516
URL:
http://svn.reactos.org/svn/reactos?rev=65516&view=rev
Log:
[USERSRV]: Use UlongToHandle and make ServicesProcessId global (will be used later on, for
shutdown). Part 2/X
CORE-8322
Modified:
trunk/reactos/win32ss/user/winsrv/usersrv/register.c
trunk/reactos/win32ss/user/winsrv/usersrv/usersrv.h
Modified: trunk/reactos/win32ss/user/winsrv/usersrv/register.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/winsrv/usersr…
==============================================================================
--- trunk/reactos/win32ss/user/winsrv/usersrv/register.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/winsrv/usersrv/register.c [iso-8859-1] Fri Nov 28 21:08:57
2014
@@ -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 @@
}
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);
Modified: trunk/reactos/win32ss/user/winsrv/usersrv/usersrv.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/winsrv/usersr…
==============================================================================
--- trunk/reactos/win32ss/user/winsrv/usersrv/usersrv.h [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/winsrv/usersrv/usersrv.h [iso-8859-1] Fri Nov 28 21:08:57
2014
@@ -38,6 +38,7 @@
/* Globals */
extern HINSTANCE UserServerDllInstance;
extern HANDLE UserServerHeap;
+extern ULONG_PTR ServicesProcessId;
extern ULONG_PTR LogonProcessId;
#endif /* __USERSRV_H__ */