[CONSRV] SetConWndConsoleLeaderCID(): Check must be before dereferencing (#3451)

Addendum to f12e601.
This commit is contained in:
Serge Gautherie 2021-02-10 18:55:19 +01:00 committed by GitHub
parent e46c2dd1b3
commit cb5d610a73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
{