mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[BASESVR] Take SessionId into account while creating BNO directory
This commit is contained in:
parent
a802726577
commit
20f5797386
1 changed files with 9 additions and 3 deletions
|
@ -353,8 +353,14 @@ BaseInitializeStaticServerData(IN PCSR_SERVER_DLL LoadedServerDll)
|
||||||
SystemRootString.Buffer);
|
SystemRootString.Buffer);
|
||||||
ASSERT(Success);
|
ASSERT(Success);
|
||||||
|
|
||||||
/* FIXME: Check Session ID */
|
if (SessionId != 0)
|
||||||
wcscpy(BnoBuffer, L"\\BaseNamedObjects");
|
{
|
||||||
|
swprintf(BnoBuffer, L"\\Sessions\\%ld\\BaseNamedObjects", SessionId);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
wcscpy(BnoBuffer, L"\\BaseNamedObjects");
|
||||||
|
}
|
||||||
RtlInitUnicodeString(&BnoString, BnoBuffer);
|
RtlInitUnicodeString(&BnoString, BnoBuffer);
|
||||||
|
|
||||||
/* Allocate the server data */
|
/* Allocate the server data */
|
||||||
|
@ -531,7 +537,7 @@ BaseInitializeStaticServerData(IN PCSR_SERVER_DLL LoadedServerDll)
|
||||||
Status = NtCreateSymbolicLinkObject(&SymHandle,
|
Status = NtCreateSymbolicLinkObject(&SymHandle,
|
||||||
SYMBOLIC_LINK_ALL_ACCESS,
|
SYMBOLIC_LINK_ALL_ACCESS,
|
||||||
&ObjectAttributes,
|
&ObjectAttributes,
|
||||||
&SymlinkName);
|
&BnoString);
|
||||||
if ((NT_SUCCESS(Status)) && SessionId == 0) NtClose(SymHandle);
|
if ((NT_SUCCESS(Status)) && SessionId == 0) NtClose(SymHandle);
|
||||||
|
|
||||||
/* Make Session point back to BNOLINKS */
|
/* Make Session point back to BNOLINKS */
|
||||||
|
|
Loading…
Reference in a new issue