1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Move the global 'logbox' into windlg.c.

It was only used in one place outside that module, so I've provided an
accessor for that one case.
This commit is contained in:
Simon Tatham
2020-02-02 10:00:42 +00:00
parent 3cb86d9fa8
commit 866f8e2d96
3 changed files with 5 additions and 1 deletions

View File

@ -939,6 +939,7 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
if (msg.message == WM_QUIT)
goto finished; /* two-level break */
HWND logbox = event_log_window();
if (!(IsWindow(logbox) && IsDialogMessage(logbox, &msg)))
DispatchMessageW(&msg);