Exagear: Fix typo in patch to emulate SIDT.

This commit is contained in:
Sebastian Lackner 2014-11-13 01:34:48 +01:00
parent a9b0616fc8
commit 75c5402c30

View File

@ -1,4 +1,4 @@
From 45108b71fd1db7fe4911885314f229cb0089041e Mon Sep 17 00:00:00 2001
From 7cb209e122fc503190dcad411483147ebc6d6cb4 Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Tue, 11 Nov 2014 03:11:33 +0100
Subject: ntdll: Implement emulation of SIDT instruction when using Exagear.
@ -35,7 +35,7 @@ index 92d78a2..c88a139 100644
dnl Check for -li386 for NetBSD and OpenBSD
diff --git a/dlls/ntdll/signal_i386.c b/dlls/ntdll/signal_i386.c
index 13df4bb..e24f75e 100644
index 13df4bb..edf5ea8 100644
--- a/dlls/ntdll/signal_i386.c
+++ b/dlls/ntdll/signal_i386.c
@@ -96,6 +96,14 @@ typedef struct
@ -243,7 +243,7 @@ index 13df4bb..e24f75e 100644
+ struct idtr ret;
+ BYTE *addr;
+
+ if ((instr[2] & 7) == 3) return FALSE; /* loading to register not allowed */
+ if ((instr[2] >> 6) == 3) return FALSE; /* loading to register not allowed */
+ addr = INSTR_GetOperandAddr( context, instr + 2, long_addr, 0, &len );
+
+ /* fake IDT structure */