[ntdll] Wrap on overflow check in signal handler
Glenn Wurster
gwurster at scs.carleton.ca
Sat Aug 20 16:22:02 CDT 2005
Changelog:
Make stack check work if stack is 0.
Glenn.
Index: dlls/ntdll/signal_i386.c
===================================================================
RCS file: /home/wine/wine/dlls/ntdll/signal_i386.c,v
retrieving revision 1.96
diff -u -r1.96 signal_i386.c
--- dlls/ntdll/signal_i386.c 3 Jul 2005 11:24:54 -0000 1.96
+++ dlls/ntdll/signal_i386.c 20 Aug 2005 20:57:14 -0000
@@ -761,7 +761,7 @@
server_abort_thread(1);
}
- if ((char *)(stack - 1) < (char *)NtCurrentTeb()->Tib.StackLimit + 4096 ||
+ if ((char *)stack <= (char *)NtCurrentTeb()->Tib.StackLimit + 4096 ||
(char *)stack > (char *)NtCurrentTeb()->Tib.StackBase)
{
UINT diff = (char *)NtCurrentTeb()->Tib.StackLimit + 4096 - (char *)stack;
More information about the wine-patches
mailing list