mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 22:32:58 +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
1 changed files with 2 additions and 2 deletions
|
@ -227,9 +227,9 @@ InitApplet(HANDLE hSectionOrWnd)
|
||||||
}
|
}
|
||||||
psh.pszCaption = szTitle;
|
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;
|
psh.hwndParent = ConInfo->hWnd;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue