Skip to content

Commit

Permalink
Merge pull request #3112 from lioncash/memory
Browse files Browse the repository at this point in the history
WII_IPC_HLE_Device_fs: Get rid of a pointer cast
  • Loading branch information
Tilka committed Sep 30, 2015
2 parents 0764971 + 473188a commit efd370f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_fs.cpp
Expand Up @@ -3,6 +3,7 @@
// Refer to the license.txt file included.

#include <algorithm>
#include <cstring>

#include "Common/ChunkFile.h"
#include "Common/CommonPaths.h"
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit efd370f

Please sign in to comment.