VolumeHandler: Return success value

This commit is contained in:
JosJuice 2014-12-10 22:25:02 +01:00
parent ef34761a51
commit 16f3970c79
1 changed files with 5 additions and 9 deletions

View File

@ -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;
}