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
This commit is contained in:
Magnus Olsen 2006-04-23 17:31:07 +00:00
parent c0d2baafb0
commit c2698a1559

View file

@ -423,6 +423,7 @@ NTSTATUS
ExpLoadInitialProcess(PHANDLE ProcessHandle, ExpLoadInitialProcess(PHANDLE ProcessHandle,
PHANDLE ThreadHandle) PHANDLE ThreadHandle)
{ {
UNICODE_STRING CurrentDirectory;
UNICODE_STRING ImagePath = RTL_CONSTANT_STRING(L"\\SystemRoot\\system32\\smss.exe"); UNICODE_STRING ImagePath = RTL_CONSTANT_STRING(L"\\SystemRoot\\system32\\smss.exe");
HANDLE SystemProcessHandle; HANDLE SystemProcessHandle;
NTSTATUS Status; NTSTATUS Status;
@ -440,11 +441,14 @@ ExpLoadInitialProcess(PHANDLE ProcessHandle,
return Status; return Status;
} }
RtlInitUnicodeString(&CurrentDirectory,
SharedUserData->NtSystemRoot);
/* Create the Parameters */ /* Create the Parameters */
Status = RtlCreateProcessParameters(&Params, Status = RtlCreateProcessParameters(&Params,
&ImagePath, &ImagePath,
NULL, NULL,
NULL, &CurrentDirectory,
NULL, NULL,
NULL, NULL,
NULL, NULL,