summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp
index 1ef195d4cc..758684dd5a 100644
--- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp
+++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_FileIO.cpp
@@ -210,14 +210,16 @@ bool CWII_IPC_HLE_Device_FileIO::Write(u32 _CommandAddress)
INFO_LOG(WII_IPC_FILEIO, "FileIO: Write 0x%04x bytes from 0x%08x to %s", Size, Address, m_Name.c_str());
-#if MAX_LOGLEVEL >= DEBUG_LEVEL
if (m_pFileHandle)
{
size_t Result = fwrite(Memory::GetPointer(Address), Size, 1, m_pFileHandle);
- _dbg_assert_msg_(WII_IPC_FILEIO, Result == 1, "fwrite failed");
- ReturnValue = Size;
- }
+#if MAX_LOGLEVEL >= DEBUG_LEVEL
+ _dbg_assert_msg_(WII_IPC_FILEIO, Result == 1, "fwrite failed");
+#else
+ (void)Result;
#endif
+ ReturnValue = Size;
+ }
Memory::Write_U32(ReturnValue, _CommandAddress + 0x4);
return true;