Returnvalue of msvcrt fseek()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--	
Uwe Bonnes                bon@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;
 }
 
 /*********************************************************************


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux