MSVCRT_lseek returns 0 on success

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Sun Jul 7 13:39:51 CDT 2002


Changelog:
	dlls/msvcrt/file.c: MSVCRT_lseek
	lseek should return 0 on success
-- 
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
@@ -2135,7 +2183,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