Merge pull request #3112 from lioncash/memory

WII_IPC_HLE_Device_fs: Get rid of a pointer cast
This commit is contained in:
flacs 2015-10-01 00:00:04 +02:00
commit efd370fd7e
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}