0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

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)
This commit is contained in:
K.Takata
2022-01-21 11:37:07 +00:00
committed by Bram Moolenaar
parent 45f9cfbdc7
commit b7057bdd09
5 changed files with 21 additions and 25 deletions

View File

@@ -1123,12 +1123,12 @@ AbortProc(HDC hdcPrn UNUSED, int iCode UNUSED)
{
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 @@ serverProcessPendingMessages(void)
{
MSG msg;
while (pPeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
while (PeekMessageW(&msg, NULL, 0, 0, PM_REMOVE))
{
TranslateMessage(&msg);
pDispatchMessage(&msg);
DispatchMessageW(&msg);
}
}