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