comparison src/os_win32.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 c9474ae175f4
children 41a940219183
comparison
equal deleted inserted replaced
27282:76236fcc4f18 27283:b4d92a69035b
4121 // Keep updating the window while waiting for the shell to finish. 4121 // Keep updating the window while waiting for the shell to finish.
4122 for (;;) 4122 for (;;)
4123 { 4123 {
4124 MSG msg; 4124 MSG msg;
4125 4125
4126 if (pPeekMessage(&msg, (HWND)NULL, 0, 0, PM_REMOVE)) 4126 if (PeekMessageW(&msg, (HWND)NULL, 0, 0, PM_REMOVE))
4127 { 4127 {
4128 TranslateMessage(&msg); 4128 TranslateMessage(&msg);
4129 pDispatchMessage(&msg); 4129 DispatchMessageW(&msg);
4130 delay = 1; 4130 delay = 1;
4131 continue; 4131 continue;
4132 } 4132 }
4133 if (WaitForSingleObject(pi.hProcess, delay) != WAIT_TIMEOUT) 4133 if (WaitForSingleObject(pi.hProcess, delay) != WAIT_TIMEOUT)
4134 break; 4134 break;
4443 // Keep updating the window while waiting for the shell to finish. 4443 // Keep updating the window while waiting for the shell to finish.
4444 for (;;) 4444 for (;;)
4445 { 4445 {
4446 MSG msg; 4446 MSG msg;
4447 4447
4448 if (pPeekMessage(&msg, (HWND)NULL, 0, 0, PM_REMOVE)) 4448 if (PeekMessageW(&msg, (HWND)NULL, 0, 0, PM_REMOVE))
4449 { 4449 {
4450 TranslateMessage(&msg); 4450 TranslateMessage(&msg);
4451 pDispatchMessage(&msg); 4451 DispatchMessageW(&msg);
4452 } 4452 }
4453 4453
4454 // write pipe information in the window 4454 // write pipe information in the window
4455 if ((options & (SHELL_READ|SHELL_WRITE)) 4455 if ((options & (SHELL_READ|SHELL_WRITE))
4456 # ifdef FEAT_GUI 4456 # ifdef FEAT_GUI