Merge pull request #3112 from lioncash/memory
WII_IPC_HLE_Device_fs: Get rid of a pointer cast
This commit is contained in:
commit
efd370fd7e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue