From e70e6236248aebe8740a3369e613d07f351c9546 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Sat, 4 Dec 2010 03:50:55 +0000 Subject: Second attempt at issue 3458. Fixes issue 3458. Replaces all occurrences of ftell and fseek with ftello and fseeko, respectively. This matters on non-win32 where only these names are altered by the _FILE_OFFSET_BITS define. Win32 still just maps the funcs to ftelli64/fseeki64. Also add some File::GetSize I had skipped in my last commit. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6515 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DiscIO/Src/FileBlob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/DiscIO/Src/FileBlob.cpp') diff --git a/Source/Core/DiscIO/Src/FileBlob.cpp b/Source/Core/DiscIO/Src/FileBlob.cpp index d2ab9c0562..e2ef5d1f64 100644 --- a/Source/Core/DiscIO/Src/FileBlob.cpp +++ b/Source/Core/DiscIO/Src/FileBlob.cpp @@ -46,7 +46,7 @@ PlainFileReader::~PlainFileReader() bool PlainFileReader::Read(u64 offset, u64 nbytes, u8* out_ptr) { - int seekStatus = fseek(file_, offset, SEEK_SET); + int seekStatus = fseeko(file_, offset, SEEK_SET); if (seekStatus != 0) return false; size_t bytesRead = fread(out_ptr, 1, nbytes, file_); -- cgit v1.2.3