mirror of
https://github.com/wiiu-env/WUMSLoader.git
synced 2024-11-27 01:54:16 +01:00
relocator: Fix KiIsEffectiveRangeValid to return a boolean.
This commit is contained in:
parent
40359e1211
commit
29c90bc943
@ -99,7 +99,7 @@ DECL(uint32_t, KiIsEffectiveRangeValid, uint32_t addressSpace, uint32_t virtualA
|
|||||||
uint32_t result = real_KiIsEffectiveRangeValid(addressSpace, virtualAddress, size);
|
uint32_t result = real_KiIsEffectiveRangeValid(addressSpace, virtualAddress, size);
|
||||||
if (result == 0) {
|
if (result == 0) {
|
||||||
if(MemoryMappingEffectiveToPhysicalPTR != 0){
|
if(MemoryMappingEffectiveToPhysicalPTR != 0){
|
||||||
return ((uint32_t (*)(uint32_t)) ((uint32_t *) MemoryMappingEffectiveToPhysicalPTR))(virtualAddress);
|
return ((uint32_t (*)(uint32_t)) ((uint32_t *) MemoryMappingEffectiveToPhysicalPTR))(virtualAddress) > 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user