From 38294d6c476403fe7be8b5d256b8339e75f2ecd5 Mon Sep 17 00:00:00 2001 From: Richard Stanway Date: Wed, 26 Apr 2017 21:36:49 +0200 Subject: [PATCH] win-capture: Add missing 32 bit offsets --- plugins/win-capture/get-graphics-offsets/d3d9-offsets.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/win-capture/get-graphics-offsets/d3d9-offsets.cpp b/plugins/win-capture/get-graphics-offsets/d3d9-offsets.cpp index 361d46315..1ffc5d106 100644 --- a/plugins/win-capture/get-graphics-offsets/d3d9-offsets.cpp +++ b/plugins/win-capture/get-graphics-offsets/d3d9-offsets.cpp @@ -166,7 +166,7 @@ static const uint8_t mask_cmp[][MAX_CMP_SIZE] = { 0x68, 0x00, 0x00, 0x00, 0x00 }, - /* Windows 10 Creator's Edition+ + /* Windows 10 Creator's Update+ * 8B 86 F8 2B 00 00 mov eax, [esi+2BF8h] * 83 B8 00 4D 00 00 00 cmp dword ptr [eax+4D00h], 0 * 75 0F jnz short loc_100D793C @@ -179,6 +179,12 @@ static const uint8_t mask_cmp[][MAX_CMP_SIZE] = { 0x68, 0x00, 0x00, 0x00, 0x00 } }; + +// Offset into the code for the numbers we're interested in +static const uint32_t code_offsets[][2] = { + {2, 8}, + {2, 8}, +}; #endif #define MAX_FUNC_SCAN_BYTES 200