Paul Gofman : ntdll/tests: Fix iret to invalid selector test on x64.

Alexandre Julliard julliard at winehq.org
Wed Dec 1 15:23:48 CST 2021


Module: wine
Branch: master
Commit: 4094767634a29d1c1e392afe923a952d4ceb857d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4094767634a29d1c1e392afe923a952d4ceb857d

Author: Paul Gofman <pgofman at codeweavers.com>
Date:   Wed Dec  1 13:53:01 2021 +0300

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

Signed-off-by: Paul Gofman <pgofman at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 a41cc82905c..5ebb6f25f8b 100644
--- a/dlls/ntdll/tests/exception.c
+++ b/dlls/ntdll/tests/exception.c
@@ -2832,8 +2832,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 */




More information about the wine-cvs mailing list