From 3bc082be52808d0d22688e51f32b3d7da0ec99bb Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 28 Feb 2014 19:56:42 -0500 Subject: [PATCH] Fix WII_SEEK_END seeking. --- Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp b/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp index b0ae7a33d8..fc1e97bb40 100644 --- a/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp +++ b/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp @@ -185,7 +185,7 @@ bool CWII_IPC_HLE_Device_FileIO::Seek(u32 _CommandAddress) case WII_SEEK_END: { - s32 wantedPos = fileSize+m_SeekPos; + s32 wantedPos = SeekPosition+fileSize; if (wantedPos >=0 && wantedPos <= fileSize) { m_SeekPos = wantedPos;