{
NTSTATUS Status;
BOOLEAN Success;
- WCHAR Buffer[MAX_PATH];
+ WCHAR BnoBuffer[100];
+ WCHAR Buffer[100];
PWCHAR HeapBuffer;
UNICODE_STRING SystemRootString;
UNICODE_STRING UnexpandedSystemRootString = RTL_CONSTANT_STRING(L"%SystemRoot%");
ASSERT(Success);
/* FIXME: Check Session ID */
- wcscpy(Buffer, L"\\BaseNamedObjects");
- RtlInitUnicodeString(&BnoString, Buffer);
+ wcscpy(BnoBuffer, L"\\BaseNamedObjects");
+ RtlInitUnicodeString(&BnoString, BnoBuffer);
/* Allocate the server data */
BaseStaticServerData = RtlAllocateHeap(BaseSrvSharedHeap,
ASSERT(NT_SUCCESS(Status));
/* Create the BNO directory */
- RtlInitUnicodeString(&BnoString, L"\\BaseNamedObjects");
InitializeObjectAttributes(&ObjectAttributes,
&BnoString,
OBJ_OPENIF | OBJ_PERMANENT | OBJ_CASE_INSENSITIVE,