From 10c7e5668901206bb4f23c2526931457daaf65d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Thu, 1 Dec 2016 00:05:12 +0100 Subject: [PATCH] IPC_HLE: Fix incorrect file path for IOCTL_SET_ATTR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We were reading the string from the wrong location… --- Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_fs.cpp b/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_fs.cpp index 6d686b2797..102912c307 100644 --- a/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_fs.cpp +++ b/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_fs.cpp @@ -344,7 +344,7 @@ s32 CWII_IPC_HLE_Device_fs::ExecuteCommand(u32 _Parameter, u32 _BufferIn, u32 _B Addr += 4; u16 GroupID = Memory::Read_U16(Addr); Addr += 2; - const std::string wii_path = Memory::GetString(_BufferIn, 64); + const std::string wii_path = Memory::GetString(Addr, 64); if (!IsValidWiiPath(wii_path)) { WARN_LOG(WII_IPC_FILEIO, "Not a valid path: %s", wii_path.c_str());