Bläddra i källkod

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.
jp9000 9 år sedan
förälder
incheckning
183ee11e24
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      plugins/win-capture/graphics-hook/d3d9-patches.hpp

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