mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +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:
parent
c0d2baafb0
commit
c2698a1559
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue