https://git.reactos.org/?p=reactos.git;a=commitdiff;h=8888311452009a409673a…
commit 8888311452009a409673adf16d99832ff7e5fe71
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Thu Aug 17 02:51:09 2023 +0200
Commit: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
CommitDate: Thu Aug 17 02:51:09 2023 +0200
[KERNEL32] CreateProcessInternalW(): Always use Peb variable
Trivial consistency/optimization.
Addendum to d81cd01 (r59637).
---
dll/win32/kernel32/client/proc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/kernel32/client/proc.c b/dll/win32/kernel32/client/proc.c
index fdfd390395e..9f1f1c1a4a0 100644
--- a/dll/win32/kernel32/client/proc.c
+++ b/dll/win32/kernel32/client/proc.c
@@ -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);