[SERVMAN] Fix return check on PropSheet_IsDialogMessage.
authorGed Murphy <gedmurphy@reactos.org>
Wed, 6 Dec 2017 22:08:46 +0000 (22:08 +0000)
committerGitHub <noreply@github.com>
Wed, 6 Dec 2017 22:08:46 +0000 (22:08 +0000)
Should fix the regression introduced in the last commit.
CORE-14068

base/applications/mscutils/servman/propsheet.c

index bd0ec24..f606a50 100644 (file)
@@ -83,14 +83,14 @@ unsigned int __stdcall PropSheetThread(void* Param)
         /* Pump the message queue */
         while (GetMessageW(&Msg, NULL, 0, 0))
         {
-            if (PropSheet_GetCurrentPageHwnd(hDlg) == NULL)
+            if (!PropSheet_GetCurrentPageHwnd(hDlg))
             {
                 /* The user hit the ok / cancel button, pull it down */
                 EnableWindow(pServicePropSheet->Info->hMainWnd, TRUE);
                 DestroyWindow(hDlg);
             }
 
-            if (PropSheet_IsDialogMessage(hDlg, &Msg) != 0)
+            if (!PropSheet_IsDialogMessage(hDlg, &Msg))
             {
                 TranslateMessage(&Msg);
                 DispatchMessageW(&Msg);