1
0
Fork 0

maybe fix some 64 bits issue with fseek

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2183
This commit is contained in:
Peter Veenstra 2005-04-21 18:46:23 +00:00
parent 7e03ec1599
commit e60e9f2aca

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: drive_local.cpp,v 1.56 2005-03-25 09:11:08 qbix79 Exp $ */
/* $Id: drive_local.cpp,v 1.57 2005-04-21 18:46:23 qbix79 Exp $ */
#include <stdio.h>
#include <stdlib.h>
@ -420,7 +420,7 @@ bool localFile::Seek(Bit32u * pos,Bit32u type) {
//TODO Give some doserrorcode;
return false;//ERROR
}
int ret=fseek(fhandle,*pos,seektype);
int ret=fseek(fhandle,*reinterpret_cast<Bit32s*>(pos),seektype);
if (ret!=0) {
// Out of file range, pretend everythings ok
// and move file pointer top end of file... ?! (Black Thorne)