patch 8.2.4170: MS-Windows: still using old message API calls
Problem: MS-Windows: still using old message API calls.
Solution: Call the "W" functions directly. (Ken Takata, closes #9582)
diff --git a/src/os_mswin.c b/src/os_mswin.c
index c6617c8..5db7bb7 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -1123,12 +1123,12 @@
{
MSG msg;
- while (!*bUserAbort && pPeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
+ while (!*bUserAbort && PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE))
{
- if (!hDlgPrint || !pIsDialogMessage(hDlgPrint, &msg))
+ if (!hDlgPrint || !IsDialogMessageW(hDlgPrint, &msg))
{
TranslateMessage(&msg);
- pDispatchMessage(&msg);
+ DispatchMessageW(&msg);
}
}
return !*bUserAbort;
@@ -2576,10 +2576,10 @@
{
MSG msg;
- while (pPeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
+ while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE))
{
TranslateMessage(&msg);
- pDispatchMessage(&msg);
+ DispatchMessageW(&msg);
}
}