From 771ad6a44264385d9282b9ca04435973e5266183 Mon Sep 17 00:00:00 2001 From: Freddie Akeroyd Date: Fri, 5 Jul 2019 12:44:05 +0100 Subject: [PATCH] msi: Flush stdout on program exit On WIN32 if the reopen()ed stdout is not closed it can occasionally result in missing lines in the output file --- src/ioc/dbtemplate/msi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ioc/dbtemplate/msi.cpp b/src/ioc/dbtemplate/msi.cpp index 49d8611b9..70623419a 100644 --- a/src/ioc/dbtemplate/msi.cpp +++ b/src/ioc/dbtemplate/msi.cpp @@ -215,6 +215,7 @@ int main(int argc,char **argv) if (opt_D) { printf("\n"); } + fflush(stdout); free(templateName); return opt_V & 2; }