[CONSOLE.CPL]: Fix a test condition. Reviewed by Thomas Faber; initially patched by Victor Martinez Calvo Should fix CID 1322302 "Fix an use after free".

Please reanalyze with Coverity :)
CORE-11179

svn path=/trunk/; revision=71303
This commit is contained in:
Hermès Bélusca-Maïto 2016-05-09 22:06:27 +00:00
parent 2a4dd63e17
commit bbc880b695

View file

@ -227,9 +227,9 @@ InitApplet(HANDLE hSectionOrWnd)
}
psh.pszCaption = szTitle;
if (/* pSharedInfo != NULL && */ ConInfo->hWnd != NULL)
if (pSharedInfo != NULL)
{
/* We were started from a console window: this is our parent. */
/* We were started from a console window: this is our parent (or ConInfo->hWnd is NULL) */
psh.hwndParent = ConInfo->hWnd;
}
else