Fix infinite loop in _flushall.

This commit is contained in:
Alfons Hoogervorst 2004-02-09 20:49:34 +00:00 committed by Alexandre Julliard
parent bd337a8665
commit bfc4044511
1 changed files with 2 additions and 2 deletions

View File

@ -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