mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 08:51:29 +00:00
[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:
parent
2a4dd63e17
commit
bbc880b695
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue