Fix up init_fp test for freopen.

This commit is contained in:
Tony Lambregts 2004-11-03 22:17:05 +00:00 committed by Alexandre Julliard
parent 1282d7ad44
commit 2dec525020
1 changed files with 1 additions and 1 deletions

View File

@ -2316,7 +2316,7 @@ MSVCRT_FILE* MSVCRT_freopen(const char *path, const char *mode,MSVCRT_FILE* file
if (fd < 0)
return NULL;
if (msvcrt_init_fp(file, fd, stream_flags) != -1)
if (msvcrt_init_fp(file, fd, stream_flags) == -1)
{
file->_flag = 0;
WARN(":failed-last error (%ld)\n",GetLastError());