WII_IPC_HLE_Device_fs: Get rid of a pointer cast

This commit is contained in:
Lioncash 2015-09-30 16:04:53 -04:00
parent 0764971feb
commit 473188a2c3
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;
}