thirdparty: Fix compat issue with 3rd party detours reading missing/invalid state in our custom minified detours

This commit is contained in:
dmex
2023-03-21 08:33:23 +11:00
parent a0d3e02918
commit 1212ad2f7c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1157,7 +1157,7 @@ struct DETOUR_REGION
};
typedef DETOUR_REGION * PDETOUR_REGION;
static constexpr ULONG DETOUR_REGION_SIGNATURE = 'Rrtd';
static constexpr ULONG DETOUR_REGION_SIGNATURE = 'R3IS';
static constexpr ULONG DETOUR_REGION_SIZE = 0x10000;
static constexpr ULONG DETOUR_TRAMPOLINES_PER_REGION = (DETOUR_REGION_SIZE / sizeof(DETOUR_TRAMPOLINE)) - 1;
static PDETOUR_REGION s_pRegions = nullptr; // List of all regions.
+2 -2
View File
@@ -144,8 +144,8 @@
// offsets.
//
#pragma data_seg(".detourd")
#pragma const_seg(".detourc")
#pragma data_seg(".sithirdpartyd")
#pragma const_seg(".sithirdpartyc")
//////////////////////////////////////////////////// X86 and X64 Disassembler.
//