From 387636f80eb522e7ac62fe547e45260f93585bee Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Mon, 21 Dec 2020 21:26:54 +0200 Subject: [PATCH] GUI debugger hang fix. --- od-win32/debug_win32.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/od-win32/debug_win32.cpp b/od-win32/debug_win32.cpp index fa75530b..b9b87e8f 100644 --- a/od-win32/debug_win32.cpp +++ b/od-win32/debug_win32.cpp @@ -1012,8 +1012,10 @@ static void ListboxEndEdit(HWND hwnd, BOOL acceptinput) ignore_ws(&p); if ((GetWindowTextLength(hedit) == 0) || (_tcslen(p) == 0)) acceptinput = FALSE; - while (PeekMessage(&msg, hedit, 0, 0, PM_REMOVE)) - ; + while (PeekMessage(&msg, hedit, 0, 0, PM_REMOVE)) { + TranslateMessage(&msg); + DispatchMessage(&msg); + } DestroyWindow(hedit); hedit = NULL; if (acceptinput) { -- 2.47.3