mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
Don't need to call FlushFileBuffers (it's equivalent to fsync, not fflush)
This commit is contained in:
parent
75cd8cf155
commit
a880f01b17
@ -1012,8 +1012,7 @@ void running_machine::logfile_callback(const running_machine &machine, const cha
|
||||
{
|
||||
machine.m_logfile->puts(buffer);
|
||||
|
||||
// TODO: commented out for now - it causes -log slow down to a crawl on Windows
|
||||
//machine.m_logfile->flush();
|
||||
machine.m_logfile->flush();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -290,19 +290,6 @@ file_error osd_fflush(osd_file *file)
|
||||
if (!file || !file->handle)
|
||||
return FILERR_FAILURE;
|
||||
|
||||
switch (file->type)
|
||||
{
|
||||
case WINFILE_FILE:
|
||||
// attempt to flush file buffers
|
||||
if (!FlushFileBuffers(file->handle))
|
||||
return win_error_to_mame_file_error(GetLastError());
|
||||
break;
|
||||
case WINFILE_SOCKET:
|
||||
return FILERR_FAILURE;
|
||||
case WINFILE_PTTY:
|
||||
return FILERR_FAILURE;
|
||||
|
||||
}
|
||||
return FILERR_NONE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user