diff options
| author | ayuanx <ayuanx@gmail.com> | 2009-12-11 09:57:18 +0000 |
|---|---|---|
| committer | ayuanx <ayuanx@gmail.com> | 2009-12-11 09:57:18 +0000 |
| commit | 0e5dc5b2ce60df8abe164b9ccd1fbff7dcd445da (patch) | |
| tree | 4bb7548ceb7dbccc39f1add4740bc342444e3fe7 /Source/Core | |
| parent | 2b7d1d294b25a594c30797904e5b2ae206fc5e21 (diff) | |
Oops, a quick bug.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4679 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp index c762d430e0..8d58a152cc 100644 --- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp +++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp @@ -246,8 +246,9 @@ CWII_IPC_HLE_Device_FileIO::IOCtl(u32 _CommandAddress) case ISFS_IOCTL_GETFILESTATS: { u64 Position = ftell(m_pFileHandle); - m_FileLength = fseek(m_pFileHandle, SEEK_END, 0); - fseek(m_pFileHandle, Position, 0); + fseek(m_pFileHandle, 0, SEEK_END); + m_FileLength = ftell(m_pFileHandle); + fseek(m_pFileHandle, Position, SEEK_SET); u32 BufferOut = Memory::Read_U32(_CommandAddress + 0x18); INFO_LOG(WII_IPC_FILEIO, "FileIO: ISFS_IOCTL_GETFILESTATS"); |
