From 1ea510c8370a642f26ca43e6fa1cdf89175dc758 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sun, 27 Sep 2015 15:41:22 +0300 Subject: [PATCH] close_console() needs registry to save current size and position. --- od-win32/win32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]); -- 2.47.3