2020-08-21 16:32:28 -07:00
|
|
|
From a35e75bfe3a6358885e756396c8597d7b60be6e5 Mon Sep 17 00:00:00 2001
|
2017-03-19 12:32:29 -07:00
|
|
|
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
|
|
|
Date: Sun, 19 Mar 2017 19:08:34 +0100
|
2019-09-12 15:44:02 -07:00
|
|
|
Subject: [PATCH] ntdll: Catch windows int 0x2e syscall on i386.
|
2017-03-19 12:32:29 -07:00
|
|
|
|
|
|
|
---
|
2020-06-09 16:27:57 -07:00
|
|
|
dlls/ntdll/unix/signal_i386.c | 5 +++++
|
2019-09-13 15:12:40 -07:00
|
|
|
1 file changed, 5 insertions(+)
|
2017-03-19 12:32:29 -07:00
|
|
|
|
2020-06-09 16:27:57 -07:00
|
|
|
diff --git a/dlls/ntdll/unix/signal_i386.c b/dlls/ntdll/unix/signal_i386.c
|
2020-08-21 16:32:28 -07:00
|
|
|
index 60a47d53ba8..5cc92ab0ced 100644
|
2020-06-09 16:27:57 -07:00
|
|
|
--- a/dlls/ntdll/unix/signal_i386.c
|
|
|
|
+++ b/dlls/ntdll/unix/signal_i386.c
|
2020-08-21 16:32:28 -07:00
|
|
|
@@ -1749,6 +1749,11 @@ static BOOL handle_interrupt( unsigned int interrupt, ucontext_t *sigcontext, vo
|
2020-07-15 15:18:59 -07:00
|
|
|
rec->ExceptionInformation[2] = context->Edx;
|
2020-08-21 16:32:28 -07:00
|
|
|
setup_raise_exception( sigcontext, stack, rec, xcontext );
|
2017-03-19 12:32:29 -07:00
|
|
|
return TRUE;
|
|
|
|
+ case 0x2e:
|
2020-07-15 15:18:59 -07:00
|
|
|
+ FIXME("unimplemented syscall handler for %#x\n", context->Eax);
|
2019-09-13 15:12:40 -07:00
|
|
|
+ EAX_sig(sigcontext) = STATUS_INVALID_SYSTEM_SERVICE;
|
|
|
|
+ EIP_sig(sigcontext) += 2;
|
2017-03-19 12:32:29 -07:00
|
|
|
+ return TRUE;
|
|
|
|
default:
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
--
|
2020-08-21 16:32:28 -07:00
|
|
|
2.28.0
|
2019-09-12 15:44:02 -07:00
|
|
|
|