]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
close_console() needs registry to save current size and position.
authorToni Wilen <twilen@winuae.net>
Sun, 27 Sep 2015 12:41:22 +0000 (15:41 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 27 Sep 2015 12:41:22 +0000 (15:41 +0300)
od-win32/win32.cpp

index 46ee9be9da093da6eb727e4ffda88874a9968103..58e35f19d2078138d537080f949e67cd3270da55 100644 (file)
@@ -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]);