summaryrefslogtreecommitdiff
path: root/src/os_mswin.c
diff options
context:
space:
mode:
authorK.Takata <kentkt@csc.jp>2022-01-21 11:37:07 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-21 11:37:07 +0000
commitb7057bdd090ddcce96dc058e4e65340c8ec961d7 (patch)
treea5501721d48c4a08ec00e4daf69cc95faa541ce2 /src/os_mswin.c
parent45f9cfbdc75e10d420039fbe98d9f554bd415213 (diff)
downloadvim-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.c10
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);
}
}