From 16f3970c791e3549775a39b9bf11cdba3b69db07 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Wed, 10 Dec 2014 22:25:02 +0100 Subject: [PATCH] VolumeHandler: Return success value --- Source/Core/Core/VolumeHandler.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Source/Core/Core/VolumeHandler.cpp b/Source/Core/Core/VolumeHandler.cpp index 1c522756f5..c57dbf161e 100644 --- a/Source/Core/Core/VolumeHandler.cpp +++ b/Source/Core/Core/VolumeHandler.cpp @@ -67,20 +67,16 @@ u32 Read32(u64 _Offset) bool ReadToPtr(u8* ptr, u64 _dwOffset, u64 _dwLength) { if (g_pVolume != nullptr && ptr) - { - g_pVolume->Read(_dwOffset, _dwLength, ptr); - return true; - } + return g_pVolume->Read(_dwOffset, _dwLength, ptr); + return false; } -bool RAWReadToPtr( u8* ptr, u64 _dwOffset, u64 _dwLength ) +bool RAWReadToPtr(u8* ptr, u64 _dwOffset, u64 _dwLength) { if (g_pVolume != nullptr && ptr) - { - g_pVolume->RAWRead(_dwOffset, _dwLength, ptr); - return true; - } + return g_pVolume->RAWRead(_dwOffset, _dwLength, ptr); + return false; }