https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3159de5573e3836e31241…
commit 3159de5573e3836e31241cc87724f1d3d1f8daf0
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Wed Mar 7 13:03:39 2018 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Wed Mar 7 13:32:38 2018 +0100
[WINSRV] Don't try to remove messages from the queue without dispatching them.
CORE-13734
This partially reverts r58615 / 01729482ae.
---
win32ss/user/winsrv/consrv/frontends/gui/guiterm.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c
b/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c
index c3e14d3099..e371ea484a 100644
--- a/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c
+++ b/win32ss/user/winsrv/consrv/frontends/gui/guiterm.c
@@ -229,13 +229,10 @@ GuiConsoleInputThread(PVOID Param)
* that the window that we want to destroy doesn't exist yet.
* So first empty the message queue.
*/
- /*
while (PeekMessageW(&TempMsg, NULL, 0, 0, PM_REMOVE))
{
- TranslateMessage(&TempMsg);
DispatchMessageW(&TempMsg);
- }*/
- while (PeekMessageW(&TempMsg, NULL, 0, 0, PM_REMOVE)) ;
+ }
if (GuiData->hWindow == NULL) continue;