fix a bug mentioned in Issue #89

This commit is contained in:
Vincent Wei
2022-09-23 16:04:11 +08:00
parent 9a94fb9a7c
commit 7f44e948d0

View File

@@ -4497,7 +4497,7 @@ BOOL GUIAPI DestroyMainWindow (HWND hWnd)
}
else
#endif /* defined _MGHAVE_VIRTUAL_WINDOW */
if (pWin->dwExStyle & WS_EX_DIALOGBOX) {
if (hosted->dwExStyle & WS_EX_DIALOGBOX) {
if (!EndDialog ((HWND)hosted, IDCANCEL))
return FALSE;
}