fdopen behaviour correction

Bill Currie bill at taniwha.org
Mon Dec 16 14:57:35 CST 2002


fdopen is not supposed to rewind the file descriptor being given a FILE *.
Proof of this comes from quakeforge working in windows natively but not in
wine without the attatched patch.

ChangeLog
 * dlls/msvcrt/file.c
   don't rewind the file after creating the FILE* handle

Bill
-- 
Leave others their otherness. -- Aratak
-------------- next part --------------
Index: dlls/msvcrt/file.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/file.c,v
retrieving revision 1.42
diff -u -r1.42 file.c
--- dlls/msvcrt/file.c	25 Nov 2002 20:50:01 -0000	1.42
+++ dlls/msvcrt/file.c	16 Dec 2002 20:49:35 -0000
@@ -620,8 +620,6 @@
   MSVCRT_FILE* file = msvcrt_alloc_fp(fd);
 
   TRACE(":fd (%d) mode (%s) FILE* (%p)\n",fd,mode,file);
-  if (file)
-    MSVCRT_rewind(file);
 
   return file;
 }


More information about the wine-patches mailing list