libwinpr-utils: flush file after each write in wlog

This commit is contained in:
Marc-André Moreau 2014-05-05 18:04:20 -04:00
parent 38c77eb57c
commit 4460a1a7cf

View File

@ -127,9 +127,7 @@ int WLog_FileAppender_WriteMessage(wLog* log, wLogFileAppender* appender, wLogMe
fprintf(fp, "%s%s\n", message->PrefixString, message->TextString); fprintf(fp, "%s%s\n", message->PrefixString, message->TextString);
#ifdef _WIN32
fflush(fp); /* slow! */ fflush(fp); /* slow! */
#endif
return 1; return 1;
} }