mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +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);
|
||||
ASSERT(Success);
|
||||
|
||||
/* FIXME: Check Session ID */
|
||||
wcscpy(BnoBuffer, L"\\BaseNamedObjects");
|
||||
if (SessionId != 0)
|
||||
{
|
||||
swprintf(BnoBuffer, L"\\Sessions\\%ld\\BaseNamedObjects", SessionId);
|
||||
}
|
||||
else
|
||||
{
|
||||
wcscpy(BnoBuffer, L"\\BaseNamedObjects");
|
||||
}
|
||||
RtlInitUnicodeString(&BnoString, BnoBuffer);
|
||||
|
||||
/* Allocate the server data */
|
||||
|
@ -531,7 +537,7 @@ BaseInitializeStaticServerData(IN PCSR_SERVER_DLL LoadedServerDll)
|
|||
Status = NtCreateSymbolicLinkObject(&SymHandle,
|
||||
SYMBOLIC_LINK_ALL_ACCESS,
|
||||
&ObjectAttributes,
|
||||
&SymlinkName);
|
||||
&BnoString);
|
||||
if ((NT_SUCCESS(Status)) && SessionId == 0) NtClose(SymHandle);
|
||||
|
||||
/* Make Session point back to BNOLINKS */
|
||||
|
|
Loading…
Reference in a new issue