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,
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,