From: Toni Wilen Date: Sun, 12 May 2024 16:32:16 +0000 (+0300) Subject: Flush log before including it with dump file. X-Git-Tag: 5300~10 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=26da05577b387bfc63d90914b82e8f76a4a13ba0;p=francis%2Fwinuae.git Flush log before including it with dump file. --- diff --git a/od-win32/win32.cpp b/od-win32/win32.cpp index af0c4b72..b71f3d40 100644 --- a/od-win32/win32.cpp +++ b/od-win32/win32.cpp @@ -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;