https://git.reactos.org/?p=reactos.git;a=commitdiff;h=87e905ecd8d529c5e17ee…
commit 87e905ecd8d529c5e17ee3053c77f19edc84aa22
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Fri Mar 10 07:25:06 2023 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Fri Mar 10 07:25:06 2023 +0900
[NOTEPAD] Use Globals.hMainWnd in ShowLastError (#5132)
Improving UI/UX by making Globals.hMainWnd the owner of the message box. CORE-18837
---
base/applications/notepad/dialog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/base/applications/notepad/dialog.c b/base/applications/notepad/dialog.c
index 345f76a9fbd..e31d8d6f038 100644
--- a/base/applications/notepad/dialog.c
+++ b/base/applications/notepad/dialog.c
@@ -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);
}
}