[SERVMAN] Fix return check on PropSheet_IsDialogMessage.

Should fix the regression introduced in the last commit.
CORE-14068
This commit is contained in:
Ged Murphy 2017-12-06 22:08:46 +00:00 committed by GitHub
parent 069546f5a4
commit d73a72c21d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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);