Skip to content

Commit 795c7f7

Browse files
ThFabbaJoachimHenze
authored andcommitted
[0.4.8] cherry-pick [WINSRV] Don't try to remove messages from the queue without dispatching them. CORE-13734
To prevent the visible symptom 'sporadic NTOSKRNL work queue deadlock when exiting command.com' This partially reverts r58615 / 0172948. (cherry picked from commit 3159de5) cherry-picked by Joachim Henze
1 parent 4a16f8a commit 795c7f7

File tree

1 file changed

+1
-4
lines changed
  • win32ss/user/winsrv/consrv/frontends/gui

1 file changed

+1
-4
lines changed

win32ss/user/winsrv/consrv/frontends/gui/guiterm.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,10 @@ GuiConsoleInputThread(PVOID Param)
229229
* that the window that we want to destroy doesn't exist yet.
230230
* So first empty the message queue.
231231
*/
232-
/*
233232
while (PeekMessageW(&TempMsg, NULL, 0, 0, PM_REMOVE))
234233
{
235-
TranslateMessage(&TempMsg);
236234
DispatchMessageW(&TempMsg);
237-
}*/
238-
while (PeekMessageW(&TempMsg, NULL, 0, 0, PM_REMOVE)) ;
235+
}
239236

240237
if (GuiData->hWindow == NULL) continue;
241238

0 commit comments

Comments
 (0)