diff --git a/src/xenia/kernel/xfile.cc b/src/xenia/kernel/xfile.cc index 803d6180f..a0656fe48 100644 --- a/src/xenia/kernel/xfile.cc +++ b/src/xenia/kernel/xfile.cc @@ -130,7 +130,7 @@ X_STATUS XFile::Read(uint32_t buffer_guest_address, uint32_t buffer_length, } else { xe::PhysicalHeap* buffer_physical_heap = buffer_start_heap->IsGuestPhysicalHeap() - ? static_cast(buffer_start_heap) + ? static_cast(buffer_start_heap) : nullptr; if (buffer_physical_heap && buffer_physical_heap->QueryRangeAccess(buffer_guest_address,