From: Ged Murphy Date: Wed, 6 Dec 2017 22:08:46 +0000 (+0000) Subject: [SERVMAN] Fix return check on PropSheet_IsDialogMessage. X-Git-Tag: good~21 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=d73a72c21d9e6ae57ce30c44d2dbe5ee5952466c [SERVMAN] Fix return check on PropSheet_IsDialogMessage. Should fix the regression introduced in the last commit. CORE-14068 --- diff --git a/base/applications/mscutils/servman/propsheet.c b/base/applications/mscutils/servman/propsheet.c index bd0ec245102..f606a502309 100644 --- a/base/applications/mscutils/servman/propsheet.c +++ b/base/applications/mscutils/servman/propsheet.c @@ -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);