[PATCH] ntdll/tests: Fix iret to invalid selector test on x64.

Paul Gofman pgofman at codeweavers.com
Wed Dec 1 04:53:01 CST 2021


Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
---
 dlls/ntdll/tests/exception.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ntdll/tests/exception.c b/dlls/ntdll/tests/exception.c
index a592ca9cf3c..0c66035568c 100644
--- a/dlls/ntdll/tests/exception.c
+++ b/dlls/ntdll/tests/exception.c
@@ -2833,8 +2833,8 @@ static const struct exception
       0, 1, STATUS_PRIVILEGED_INSTRUCTION, 0 },
 
     /* test iret to invalid selector */
-    { { 0x6a, 0x00, 0x6a, 0x00, 0x6a, 0x00, 0xcf, 0x83, 0xc4, 0x18, 0xc3 },
-      /* 15: pushq $0; pushq $0; pushq $0; iret; addl $24,%esp; ret */
+    { { 0x6a, 0x00, 0x6a, 0x00, 0x6a, 0x00, 0xcf, 0x48, 0x83, 0xc4, 0x18, 0xc3 },
+      /* 15: pushq $0; pushq $0; pushq $0; iret; addq $24,%rsp; ret */
       6, 1, STATUS_ACCESS_VIOLATION, 2, { 0, 0xffffffffffffffff } },
 /* 15 */
     /* test loading an invalid selector */
-- 
2.33.1




More information about the wine-devel mailing list