Please sign in to comment.
Fix bug not shutting down LK correctly if a dialog window is open.
This could be possible only on PC version, where you can click on the X corner to quit a program. But the bug would hit even resized LK instances on CE. The Close() was missing, and when clicking on X to quit LK, if a dialog was pending it was not closed correctly: the modal dialog had previously stopped the message loop dispatcher, and as a result inside the main message loop in lk8000.cpp we were not getting the QUIT message. So the main thread was left running, as a ghost process. This could happen only on PC, so far, but was a pending problem for the cases when we have a full window where you can click an X to quit. It remains the question: why WM_CLOSE is not sent to WindowControls message manager? Never mind since we now handle the close directly from WM_DESTROY.
- Loading branch information...
Showing with 8 additions and 5 deletions.