[KERNEL32] CreateProcessInternalW(): Always use Peb variable

Trivial consistency/optimization.

Addendum to d81cd01 (r59637).
This commit is contained in:
Serge Gautherie 2023-08-17 02:51:09 +02:00
parent 5645f7cf8f
commit 8888311452

View file

@ -3555,7 +3555,7 @@ StartScan:
/* If the process is being debugged, only read IFEO if the PEB says so */
if (!(dwCreationFlags & (DEBUG_PROCESS | DEBUG_ONLY_THIS_PROCESS)) ||
(NtCurrentPeb()->ReadImageFileExecOptions))
(Peb->ReadImageFileExecOptions))
{
/* Let's do this! Attempt to open IFEO */
IFEOStatus = LdrOpenImageFileOptionsKey(&PathName, 0, &KeyHandle);