Commit 925a88d1 authored by Erich E. Hoover's avatar Erich E. Hoover Committed by Alexandre Julliard

msvcrt: Fix scanf file locking when returning EOF.

parent da238dc1
......@@ -489,6 +489,7 @@ _FUNCTION_ {
}
/* if we have reached the EOF and output nothing then report EOF */
if (nch==_EOF_ && rd==0 && st==0) {
_UNLOCK_FILE_(file);
return _EOF_RET;
}
/* terminate */
......@@ -524,6 +525,7 @@ _FUNCTION_ {
#if _MSVCR_VER >= 80
/* if we have reached the EOF and output nothing then report EOF */
if (nch==_EOF_ && rd==0 && st==0) {
_UNLOCK_FILE_(file);
return _EOF_RET;
}
#endif
......
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