[NOTEPAD] Use Globals.hMainWnd in ShowLastError (#5132)

Improving UI/UX by making Globals.hMainWnd the owner of the message box. CORE-18837
This commit is contained in:
Katayama Hirofumi MZ 2023-03-10 07:25:06 +09:00 committed by GitHub
parent a49732e5b6
commit 87e905ecd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,7 @@ VOID ShowLastError(VOID)
0,
NULL);
MessageBox(NULL, lpMsgBuf, szTitle, MB_OK | MB_ICONERROR);
MessageBox(Globals.hMainWnd, lpMsgBuf, szTitle, MB_OK | MB_ICONERROR);
LocalFree(lpMsgBuf);
}
}