From 183ee11e248f6ebdf08baaff0d00def1c4554c84 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 6 Aug 2016 12:21:09 -0700 Subject: [PATCH] win-capture: Fix lookup order for d3d9 patch It's supposed to look for patch segments in ascending order, from the smallest offset to the largest offset. Patch type/comparison is identical to the one it's being swapped with, so only the offsets need to be swapped. --- plugins/win-capture/graphics-hook/d3d9-patches.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/win-capture/graphics-hook/d3d9-patches.hpp b/plugins/win-capture/graphics-hook/d3d9-patches.hpp index 7caf7859e..c7219ec92 100644 --- a/plugins/win-capture/graphics-hook/d3d9-patches.hpp +++ b/plugins/win-capture/graphics-hook/d3d9-patches.hpp @@ -132,8 +132,8 @@ static const uintptr_t patch_offset[NUM_VERS] = { 0x8F00F, //win8.1 - 6.3.9600.17085 0x8FBB1, //win8.1 - 6.3.9600.16384 0x90264, //win8.1 - 6.3.9600.17415 - 0x90C57, //win10 - 10.0.10586.0 0x90C3A, //win10 - 10.0.10586.494 + 0x90C57, //win10 - 10.0.10586.0 0x166A08 //win8 - 6.2.9200.16384 };