diff src/os_mswin.c @ 27283:b4d92a69035b v8.2.4170

patch 8.2.4170: MS-Windows: still using old message API calls Commit: https://github.com/vim/vim/commit/b7057bdd090ddcce96dc058e4e65340c8ec961d7 Author: K.Takata <kentkt@csc.jp> Date: Fri Jan 21 11:37:07 2022 +0000 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 https://github.com/vim/vim/issues/9582)
author Bram Moolenaar <Bram@vim.org>
date Fri, 21 Jan 2022 12:45:03 +0100
parents 51ddf6740ac6
children 41a940219183
line wrap: on
line diff
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -1123,12 +1123,12 @@ AbortProc(HDC hdcPrn UNUSED, int iCode U
 {
     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);
     }
 }