From: Toni Wilen Date: Sun, 27 Sep 2015 12:41:22 +0000 (+0300) Subject: close_console() needs registry to save current size and position. X-Git-Tag: 3200~46 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=1ea510c8370a642f26ca43e6fa1cdf89175dc758;p=francis%2Fwinuae.git close_console() needs registry to save current size and position. --- diff --git a/od-win32/win32.cpp b/od-win32/win32.cpp index 46ee9be9..58e35f19 100644 --- a/od-win32/win32.cpp +++ b/od-win32/win32.cpp @@ -5962,8 +5962,6 @@ end: #ifdef RETROPLATFORM rp_free (); #endif - if (hWinUAEKey) - RegCloseKey (hWinUAEKey); CloseHandle (hMutex); WIN32_CleanupLibraries (); WIN32_UnregisterClasses (); @@ -5972,6 +5970,8 @@ end: //_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); #endif close_console(); + if (hWinUAEKey) + RegCloseKey(hWinUAEKey); _fcloseall(); for (i = 0; i < argc; i++) xfree (argv[i]);