Browse Source

win-capture: Add missing 32 bit offsets

Richard Stanway 8 years ago
parent
commit
38294d6c47
1 changed files with 7 additions and 1 deletions
  1. 7 1
      plugins/win-capture/get-graphics-offsets/d3d9-offsets.cpp

+ 7 - 1
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