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
This commit is contained in:
Freddie Akeroyd
2019-07-05 12:44:05 +01:00
committed by Michael Davidsaver
parent c9c4eea0f8
commit 771ad6a442
+1
View File
@@ -215,6 +215,7 @@ int main(int argc,char **argv)
if (opt_D) {
printf("\n");
}
fflush(stdout);
free(templateName);
return opt_V & 2;
}