mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user