diff --git a/reactos/dll/cpl/console/console.c b/reactos/dll/cpl/console/console.c index 17f6c918484..d0f65dadd16 100644 --- a/reactos/dll/cpl/console/console.c +++ b/reactos/dll/cpl/console/console.c @@ -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