diff options
| author | flacs <tilkax@gmail.com> | 2015-10-01 00:00:04 +0200 |
|---|---|---|
| committer | flacs <tilkax@gmail.com> | 2015-10-01 00:00:04 +0200 |
| commit | efd370fd7e758b4fffe554288593db961d5b6a6d (patch) | |
| tree | e576f34205565dd3b89e5770ab75e467d3429d55 | |
| parent | 0764971febe8c694a6bb957995fef7cf1d2f6bfe (diff) | |
| parent | 473188a2c3994a3ed3c84a8ca64f84dcdf63a753 (diff) | |
Merge pull request #3112 from lioncash/memory
WII_IPC_HLE_Device_fs: Get rid of a pointer cast
| -rw-r--r-- | Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_fs.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <algorithm> +#include <cstring> #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; } |
