From e60e9f2aca71301b120be8e668aa3ae07f026dff Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Thu, 21 Apr 2005 18:46:23 +0000 Subject: [PATCH] maybe fix some 64 bits issue with fseek Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2183 --- src/dos/drive_local.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dos/drive_local.cpp b/src/dos/drive_local.cpp index 70584476..8bb7a43b 100644 --- a/src/dos/drive_local.cpp +++ b/src/dos/drive_local.cpp @@ -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 #include @@ -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(pos),seektype); if (ret!=0) { // Out of file range, pretend everythings ok // and move file pointer top end of file... ?! (Black Thorne)