From 473188a2c3994a3ed3c84a8ca64f84dcdf63a753 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 30 Sep 2015 16:04:53 -0400 Subject: [PATCH] WII_IPC_HLE_Device_fs: Get rid of a pointer cast --- Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_fs.cpp | 3 ++- 1 file changed, 2 insertions(+), 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 1dbd89b757..bed749c0dc 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 @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include +#include #include "Common/ChunkFile.h" #include "Common/CommonPaths.h" @@ -263,7 +264,7 @@ s32 CWII_IPC_HLE_Device_fs::ExecuteCommand(u32 _Parameter, u32 _BufferIn, u32 _B fs.Free_INodes = 0x146B; fs.Used_Inodes = 0x0394; - *(NANDStat*)Memory::GetPointer(_BufferOut) = fs; + std::memcpy(Memory::GetPointer(_BufferOut), &fs, sizeof(NANDStat)); return FS_RESULT_OK; }