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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user