Commit 20e0a6f2 authored by Iván Matellanes's avatar Iván Matellanes Committed by Alexandre Julliard

msvcrt: Avoid locking the file in _fclose_nolock.

parent 344bc6d7
...@@ -3428,7 +3428,7 @@ int CDECL MSVCRT__fclose_nolock(MSVCRT_FILE* file) ...@@ -3428,7 +3428,7 @@ int CDECL MSVCRT__fclose_nolock(MSVCRT_FILE* file)
file->_tmpfname = NULL; file->_tmpfname = NULL;
/* flush stdio buffers */ /* flush stdio buffers */
if(file->_flag & MSVCRT__IOWRT) if(file->_flag & MSVCRT__IOWRT)
MSVCRT_fflush(file); MSVCRT__fflush_nolock(file);
if(file->_flag & MSVCRT__IOMYBUF) if(file->_flag & MSVCRT__IOMYBUF)
MSVCRT_free(file->_base); MSVCRT_free(file->_base);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment