fix up MSVCRT_freopen

Tony Lambregts tony_lambregts at telusplanet.net
Wed Nov 3 12:57:40 CST 2004


I found this while investigating bug number 2554
http://bugs.winehq.org/show_bug.cgi?id=2554

It seems that our test was wardsback.

Change log:  Fix up init_fp test for freopen.

Files changed: dlls/msvcrt/file.c

Index: dlls/msvcrt/file.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/file.c,v
retrieving revision 1.72
diff -u -r1.72 file.c
--- file.c    14 Oct 2004 00:26:39 -0000    1.72
+++ file.c    3 Nov 2004 18:40:31 -0000
@@ -2316,7 +2316,7 @@
 
   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());





More information about the wine-patches mailing list