* exceptions.cc (handle_exceptions): Search further for stack info to

accomodate Windows 95.
This commit is contained in:
Christopher Faylor
2000-04-20 21:33:58 +00:00
parent db64ab89f0
commit 60bebb0318
2 changed files with 6 additions and 1 deletions

View File

@ -497,7 +497,7 @@ handle_exceptions (EXCEPTION_RECORD *e, void *, CONTEXT *in, void *)
myself->getsig(sig).sa_handler);
DWORD *ebp = (DWORD *)in->Esp;
for (DWORD *bpend = ebp - 8; ebp > bpend; ebp--)
for (DWORD *bpend = ebp - 16; ebp > bpend; ebp--)
if (*ebp == in->SegCs && ebp[-1] == in->Eip)
{
ebp -= 2;