mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 23:55:07 +00:00
Fix boot. The fact this fixes it should worry about the state of CSRSS...
svn path=/trunk/; revision=54990
This commit is contained in:
parent
3ea87d4d2b
commit
3735acec50
|
@ -801,7 +801,6 @@ BasePushProcessParameters(IN ULONG ParameterFlags,
|
|||
SIZE_T Size;
|
||||
BOOLEAN HavePebLock = FALSE, Result;
|
||||
PPEB Peb = NtCurrentPeb();
|
||||
DPRINT("BasePushProcessParameters\n");
|
||||
|
||||
/* Get the full path name */
|
||||
Size = GetFullPathNameW(ApplicationPathName,
|
||||
|
@ -1050,7 +1049,7 @@ BasePushProcessParameters(IN ULONG ParameterFlags,
|
|||
RTL_USER_PROCESS_PARAMETERS_PROFILE_KERNEL : 0;
|
||||
ProcessParameters->Flags |= (CreationFlags & PROFILE_SERVER) ?
|
||||
RTL_USER_PROCESS_PARAMETERS_PROFILE_SERVER : 0;
|
||||
ProcessParameters->Flags |= (NtCurrentPeb()->ProcessParameters->Flags &
|
||||
ProcessParameters->Flags |= (Peb->ProcessParameters->Flags &
|
||||
RTL_USER_PROCESS_PARAMETERS_DISABLE_HEAP_CHECKS);
|
||||
|
||||
/* Write the Parameter Block */
|
||||
|
@ -1068,7 +1067,7 @@ BasePushProcessParameters(IN ULONG ParameterFlags,
|
|||
sizeof(PVOID),
|
||||
NULL);
|
||||
if (!NT_SUCCESS(Status)) goto FailPath;
|
||||
|
||||
|
||||
/* Check if there's any app compat data to write */
|
||||
RemoteAppCompatData = NULL;
|
||||
if (AppCompatData)
|
||||
|
@ -1082,7 +1081,7 @@ BasePushProcessParameters(IN ULONG ParameterFlags,
|
|||
MEM_COMMIT,
|
||||
PAGE_READWRITE);
|
||||
if (!NT_SUCCESS(Status)) goto FailPath;
|
||||
|
||||
|
||||
/* Write the application compatibility data */
|
||||
Status = NtWriteVirtualMemory(ProcessHandle,
|
||||
RemoteAppCompatData,
|
||||
|
@ -1091,7 +1090,7 @@ BasePushProcessParameters(IN ULONG ParameterFlags,
|
|||
NULL);
|
||||
if (!NT_SUCCESS(Status)) goto FailPath;
|
||||
}
|
||||
|
||||
|
||||
/* Write the PEB Pointer to the app compat data (might be NULL) */
|
||||
Status = NtWriteVirtualMemory(ProcessHandle,
|
||||
&RemotePeb->pShimData,
|
||||
|
@ -1109,7 +1108,7 @@ BasePushProcessParameters(IN ULONG ParameterFlags,
|
|||
sizeof(ImageSubsystem),
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
||||
/* Success path */
|
||||
Result = TRUE;
|
||||
|
||||
|
|
|
@ -51,6 +51,7 @@ typedef struct _BASE_SXS_CREATEPROCESS_MSG
|
|||
|
||||
typedef struct
|
||||
{
|
||||
#if 0
|
||||
//
|
||||
// NT-type structure (BASE_CREATEPROCESS_MSG)
|
||||
//
|
||||
|
@ -65,6 +66,7 @@ typedef struct
|
|||
PVOID PebAddressNative;
|
||||
ULONG PebAddressWow64;
|
||||
USHORT ProcessorArchitecture;
|
||||
#endif
|
||||
//
|
||||
// ReactOS Data
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue