From 81ae26ef6b902332686b1db7bc41bad45006e623 Mon Sep 17 00:00:00 2001 From: Subv Date: Fri, 25 Dec 2015 12:59:06 -0500 Subject: [PATCH] Fixed a type bug --- src/core/hle/service/ldr_ro.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/hle/service/ldr_ro.cpp b/src/core/hle/service/ldr_ro.cpp index 174284f75..3ea4893c7 100644 --- a/src/core/hle/service/ldr_ro.cpp +++ b/src/core/hle/service/ldr_ro.cpp @@ -139,7 +139,7 @@ struct CROHeader { u32 unk4_num; u8 GetImportPatchesTargetSegment() { return segment_offset & 0xF; } - u8 GetImportPatchesSegmentOffset() { return segment_offset >> 4; } + u32 GetImportPatchesSegmentOffset() { return segment_offset >> 4; } SegmentTableEntry* GetSegmentTableEntry(u32 index, bool relocated = false); void RelocateSegmentsTable(u32 base, u32 data_section0, u32 data_section1, u32& prev_data_section0); @@ -295,7 +295,6 @@ void CROHeader::RelocateOffsets(u32 base) { } static void ApplyPatch(Patch* patch, u32 patch_base, u32 patch_address, u32* patch_address1 = nullptr) { - if (!patch_address1) patch_address1 = &patch_address;