Commit bfc40445 authored by Alfons Hoogervorst's avatar Alfons Hoogervorst Committed by Alexandre Julliard

Fix infinite loop in _flushall.

parent bd337a86
......@@ -748,9 +748,9 @@ int _fileno(MSVCRT_FILE* file)
*/
int _flushall(void)
{
int num_flushed = 0, i = 3;
int i, num_flushed = 0;
while(i < MSVCRT_fdend)
for (i = 3; i < MSVCRT_fdend; i++)
if (MSVCRT_handles[i] != INVALID_HANDLE_VALUE)
{
#if 0
......
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