Commit 2dec5250 authored by Tony Lambregts's avatar Tony Lambregts Committed by Alexandre Julliard

Fix up init_fp test for freopen.

parent 1282d7ad
......@@ -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());
......
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