Returnvalue of msvcrt fseek()

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Sat Jul 6 17:06:23 CDT 2002


Changelog:
	dll/msvcrt/file.c: MSVCRT_fseek
	fseek return 0 on success and -1 on failure

--	
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Free Software: If you contribute nothing, expect nothing
--
Index: wine/dlls/msvcrt/file.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/file.c,v
retrieving revision 1.28
diff -u -r1.28 file.c
--- wine/dlls/msvcrt/file.c	5 Jul 2002 21:23:07 -0000	1.28
+++ wine/dlls/msvcrt/file.c	6 Jul 2002 22:02:40 -0000
@@ -2135,7 +2135,7 @@
   if(file->_flag & MSVCRT__IORW) {
         file->_flag &= ~(MSVCRT__IOREAD|MSVCRT__IOWRT);
   }
-  return _lseek(file->_file,offset,whence);
+  return (_lseek(file->_file,offset,whence) == -1)?-1:0;
 }
 
 /*********************************************************************



More information about the wine-patches mailing list