[PATCH 1/2] ntdll/tests: Restore EFlags without re-loading.
Jefferson Carpenter
jeffersoncarpenter2 at gmail.com
Thu Sep 3 12:39:22 CDT 2020
From bd05a12b0c4b4bb09d9398052f8955b3467b94f2 Mon Sep 17 00:00:00 2001
From: Jefferson Carpenter <jeffersoncarpenter2 at gmail.com>
Date: Thu, 3 Sep 2020 19:24:54 +0000
Subject: [PATCH 1/2] ntdll/tests: Restore EFlags without re-loading.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49771
Signed-off-by: Jefferson Carpenter <jeffersoncarpenter2 at gmail.com>
---
dlls/ntdll/tests/exception.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/ntdll/tests/exception.c b/dlls/ntdll/tests/exception.c
index ca0dec2a627..494f8fd96e7 100644
--- a/dlls/ntdll/tests/exception.c
+++ b/dlls/ntdll/tests/exception.c
@@ -771,10 +771,8 @@ static const BYTE align_check_code[] = {
0x0d,0,0,4,0, /* or $0x40000,%eax */
0x50, /* push %eax */
0x9d, /* popf */
- 0x89,0xe0, /* mov %esp, %eax */
- 0x8b,0x40,0x1, /* mov 0x1(%eax), %eax - cause exception */
- 0x9c, /* pushf */
- 0x58, /* pop %eax */
+ 0x89,0xe1, /* mov %esp, %ecx */
+ 0x8b,0x49,0x1, /* mov 0x1(%ecx), %ecx - cause exception */
0x35,0,0,4,0, /* xor $0x40000,%eax */
0x50, /* push %eax */
0x9d, /* popf */
--
2.26.2
More information about the wine-devel
mailing list