[CONSOLE.CPL]: Fix a test condition. Reviewed by Thomas Faber; initially patched...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 9 May 2016 22:06:27 +0000 (22:06 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 9 May 2016 22:06:27 +0000 (22:06 +0000)
Please reanalyze with Coverity :)
CORE-11179

svn path=/trunk/; revision=71303

reactos/dll/cpl/console/console.c

index 17f6c91..d0f65da 100644 (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