1
0
forked from aniani/vim

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

@@ -4123,10 +4123,10 @@ mch_system_classic(char *cmd, int options)
{
MSG msg;
if (pPeekMessage(&msg, (HWND)NULL, 0, 0, PM_REMOVE))
if (PeekMessageW(&msg, (HWND)NULL, 0, 0, PM_REMOVE))
{
TranslateMessage(&msg);
pDispatchMessage(&msg);
DispatchMessageW(&msg);
delay = 1;
continue;
}
@@ -4445,10 +4445,10 @@ mch_system_piped(char *cmd, int options)
{
MSG msg;
if (pPeekMessage(&msg, (HWND)NULL, 0, 0, PM_REMOVE))
if (PeekMessageW(&msg, (HWND)NULL, 0, 0, PM_REMOVE))
{
TranslateMessage(&msg);
pDispatchMessage(&msg);
DispatchMessageW(&msg);
}
// write pipe information in the window