https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6e4f0365e3878dea91ea2…
commit 6e4f0365e3878dea91ea21bf8c268803b9ad5ce6
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Tue May 7 22:41:30 2019 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Wed May 8 18:34:28 2019 +0200
[BASESRV] Make SessionId global
---
subsystems/win/basesrv/basesrv.h | 1 +
subsystems/win/basesrv/init.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/subsystems/win/basesrv/basesrv.h b/subsystems/win/basesrv/basesrv.h
index 7e30f4a0ac..e9abac970d 100644
--- a/subsystems/win/basesrv/basesrv.h
+++ b/subsystems/win/basesrv/basesrv.h
@@ -64,5 +64,6 @@ typedef NTSTATUS (WINAPI *PCREATE_NLS_SECURTY_DESCRIPTOR)(IN PVOID
Buffer,
extern HANDLE BaseSrvHeap;
extern HANDLE BaseSrvSharedHeap;
extern PBASE_STATIC_SERVER_DATA BaseStaticServerData;
+extern ULONG SessionId;
#endif /* __BASESRV_H__ */
diff --git a/subsystems/win/basesrv/init.c b/subsystems/win/basesrv/init.c
index d022988ad1..00aa891734 100644
--- a/subsystems/win/basesrv/init.c
+++ b/subsystems/win/basesrv/init.c
@@ -29,6 +29,8 @@ HANDLE BaseSrvHeap = NULL; // Our own heap.
HANDLE BaseSrvSharedHeap = NULL; // Shared heap with CSR. (CsrSrvSharedSectionHeap)
PBASE_STATIC_SERVER_DATA BaseStaticServerData = NULL; // Data that we can share amongst
processes. Initialized inside BaseSrvSharedHeap.
+ULONG SessionId = 0;
+
PINIFILE_MAPPING BaseSrvIniFileMapping;
// Windows Server 2003 table from
http://j00ru.vexillium.org/csrss_list/api_list.html#Windows_2k3
@@ -301,7 +303,6 @@ BaseInitializeStaticServerData(IN PCSR_SERVER_DLL LoadedServerDll)
UNICODE_STRING BaseSrvWindowsSystemDirectory;
UNICODE_STRING BnoString;
OBJECT_ATTRIBUTES ObjectAttributes;
- ULONG SessionId;
HANDLE BaseSrvNamedObjectDirectory;
HANDLE BaseSrvRestrictedObjectDirectory;
PACL BnoDacl, BnoRestrictedDacl;