X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/babac7bd70fda1ec0c9810c8f4ccf08cfa1e31fb..00db133f300dd6aa08111d2b42c749a940ecede9:/window.c diff --git a/window.c b/window.c index 52af23e2..54665c97 100644 --- a/window.c +++ b/window.c @@ -633,15 +633,15 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show) set_input_locale(GetKeyboardLayout(0)); /* - * Finally show the window! + * Open the initial log file if there is one. */ - ShowWindow(hwnd, show); - SetForegroundWindow(hwnd); + logfopen(); /* - * Open the initial log file if there is one. + * Finally show the window! */ - logfopen(); + ShowWindow(hwnd, show); + SetForegroundWindow(hwnd); /* * Set the palette up.