Author: greatlrd Date: Sun Apr 23 21:31:07 2006 New Revision: 21725
URL: http://svn.reactos.ru/svn/reactos?rev=21725&view=rev Log: 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.
Modified: trunk/reactos/ntoskrnl/ex/init.c
Modified: trunk/reactos/ntoskrnl/ex/init.c URL: http://svn.reactos.ru/svn/reactos/trunk/reactos/ntoskrnl/ex/init.c?rev=21725... ============================================================================== --- trunk/reactos/ntoskrnl/ex/init.c (original) +++ trunk/reactos/ntoskrnl/ex/init.c Sun Apr 23 21:31:07 2006 @@ -423,6 +423,7 @@ 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 @@ return Status; }
+ RtlInitUnicodeString(&CurrentDirectory, + SharedUserData->NtSystemRoot); + /* Create the Parameters */ Status = RtlCreateProcessParameters(&Params, &ImagePath, NULL, - NULL, + &CurrentDirectory, NULL, NULL, NULL,