]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Flush log before including it with dump file.
authorToni Wilen <twilen@winuae.net>
Sun, 12 May 2024 16:32:16 +0000 (19:32 +0300)
committerToni Wilen <twilen@winuae.net>
Sun, 12 May 2024 16:32:16 +0000 (19:32 +0300)
od-win32/win32.cpp

index af0c4b7287d041049b3039de65db4db8e66ebd6d..b71f3d408b542dee7a241e863ff6e9299e652e38 100644 (file)
@@ -3883,6 +3883,8 @@ uae_u8 *save_log(int bootlog, size_t *len)
 
        if (!logging_started)
                return NULL;
+       if (debugfile)
+               fflush(debugfile);
        f = _tfopen(bootlog ? LOG_BOOT : LOG_NORMAL, _T("rb"));
        if (!f)
                return NULL;