From c2698a155972f9307fb2fcbd7fa6a7c9e9249fc7 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sun, 23 Apr 2006 17:31:07 +0000 Subject: [PATCH] patch from w3seek : create smss with a current directory (system path), Otherwise the current directory for all early processes will be NULL. Fixes some inf installation issues reported by Herve. svn path=/trunk/; revision=21725 --- reactos/ntoskrnl/ex/init.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/ex/init.c b/reactos/ntoskrnl/ex/init.c index 71a08bb0ace..11e5c5427cd 100644 --- a/reactos/ntoskrnl/ex/init.c +++ b/reactos/ntoskrnl/ex/init.c @@ -423,6 +423,7 @@ NTSTATUS ExpLoadInitialProcess(PHANDLE ProcessHandle, PHANDLE ThreadHandle) { + UNICODE_STRING CurrentDirectory; UNICODE_STRING ImagePath = RTL_CONSTANT_STRING(L"\\SystemRoot\\system32\\smss.exe"); HANDLE SystemProcessHandle; NTSTATUS Status; @@ -440,11 +441,14 @@ ExpLoadInitialProcess(PHANDLE ProcessHandle, return Status; } + RtlInitUnicodeString(&CurrentDirectory, + SharedUserData->NtSystemRoot); + /* Create the Parameters */ Status = RtlCreateProcessParameters(&Params, &ImagePath, NULL, - NULL, + &CurrentDirectory, NULL, NULL, NULL,