]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
GUI debugger hang fix.
authorToni Wilen <twilen@winuae.net>
Mon, 21 Dec 2020 19:26:54 +0000 (21:26 +0200)
committerToni Wilen <twilen@winuae.net>
Mon, 21 Dec 2020 19:26:54 +0000 (21:26 +0200)
od-win32/debug_win32.cpp

index fa75530b907834bc7e69fff1e368ac46e3d94d19..b9b87e8fce2d961ccc10ef9110a7010a552dbea0 100644 (file)
@@ -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) {