https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cb5d610a73673c0404a54…
commit cb5d610a73673c0404a5473fe654a89cf67d7210
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Wed Feb 10 18:55:19 2021 +0100
Commit: GitHub <noreply(a)github.com>
CommitDate: Wed Feb 10 18:55:19 2021 +0100
[CONSRV] SetConWndConsoleLeaderCID(): Check must be before dereferencing (#3451)
Addendum to f12e601.
---
win32ss/user/winsrv/consrv/frontends/gui/conwnd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
b/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
index 6dc4249dbe8..a1d180d5f93 100644
--- a/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
+++ b/win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
@@ -51,8 +51,8 @@ SetConWndConsoleLeaderCID(IN PGUI_CONSOLE_DATA GuiData)
ProcessData = ConSrvGetConsoleLeaderProcess(GuiData->Console);
- DPRINT("ProcessData: %p, ProcessData->Process %p.\n", ProcessData,
ProcessData->Process);
ASSERT(ProcessData != NULL);
+ DPRINT("ProcessData: %p, ProcessData->Process %p.\n", ProcessData,
ProcessData->Process);
if (ProcessData->Process)
{