From cb5d610a73673c0404a5473fe654a89cf67d7210 Mon Sep 17 00:00:00 2001 From: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> Date: Wed, 10 Feb 2021 18:55:19 +0100 Subject: [PATCH] [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) {