diff options
author | K.Takata <kentkt@csc.jp> | 2022-01-21 11:37:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-21 11:37:07 +0000 |
commit | b7057bdd090ddcce96dc058e4e65340c8ec961d7 (patch) | |
tree | a5501721d48c4a08ec00e4daf69cc95faa541ce2 /src/os_mswin.c | |
parent | 45f9cfbdc75e10d420039fbe98d9f554bd415213 (diff) | |
download | vim-git-b7057bdd090ddcce96dc058e4e65340c8ec961d7.tar.gz |
patch 8.2.4170: MS-Windows: still using old message API callsv8.2.4170
Problem: MS-Windows: still using old message API calls.
Solution: Call the "W" functions directly. (Ken Takata, closes #9582)
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r-- | src/os_mswin.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index c6617c872..5db7bb783 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -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); } } |