From: Toni Wilen Date: Mon, 21 Dec 2020 19:26:54 +0000 (+0200) Subject: GUI debugger hang fix. X-Git-Tag: 4900~230 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=387636f80eb522e7ac62fe547e45260f93585bee;p=francis%2Fwinuae.git GUI debugger hang fix. --- 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) {