SetFilePointer refixed

Medland, Bill Bill.Medland at accpac.com
Mon Jun 18 17:30:20 CDT 2001


 <<diff.txt>> 
-------------- next part --------------
Bill Medland (medbi01 at accpac.com)
SetFilePointer correction; return ERROR_NEGATIVE_SEEK (broken by the 
64 bit file access enhancement)

Index: wine/server/file.c
===================================================================
RCS file: /home/wine/wine/server/file.c,v
retrieving revision 1.41
diff -u -r1.41 file.c
--- wine/server/file.c	2001/05/29 20:55:22	1.41
+++ wine/server/file.c	2001/06/18 22:09:14
@@ -354,7 +354,7 @@
 
         /* also check EPERM due to SuSE7 2.2.16 lseek() EPERM kernel bug */
         if (((errno == EINVAL) || (errno == EPERM))
-            && (whence != SEEK_SET) && (*low < 0))
+            && (whence != SEEK_SET) && (*high < 0))
             set_error( 0xc0010000 | ERROR_NEGATIVE_SEEK /* FIXME */ );
         else
             file_set_error();


More information about the wine-patches mailing list