Fix up init_fp test for freopen.
authorTony Lambregts <tony_lambregts@telusplanet.net>
Wed, 3 Nov 2004 22:17:05 +0000 (22:17 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 3 Nov 2004 22:17:05 +0000 (22:17 +0000)
dlls/msvcrt/file.c

index d6820f67e93dc72424a775d888272b0b93848aeb..aa8ce1b0ba6c4e7d3982576aacbe14f30c000bad 100644 (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());