From 60bebb03183fdecfbe8a39d02d6ff5651b7e004f Mon Sep 17 00:00:00 2001
From: Christopher Faylor <me@cgf.cx>
Date: Thu, 20 Apr 2000 21:33:58 +0000
Subject: [PATCH] * exceptions.cc (handle_exceptions): Search further for stack
 info to accomodate Windows 95.

---
 winsup/cygwin/ChangeLog     | 5 +++++
 winsup/cygwin/exceptions.cc | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 6d0801ce1..6704ff692 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+Thu Apr 20 17:32:42 2000  Christopher Faylor <cgf@cygnus.com>
+
+	* exceptions.cc (handle_exceptions): Search further for stack info to
+	accomodate Windows 95.
+
 Thu Apr 20 16:39:18 2000  Christopher Faylor <cgf@cygnus.com>
 
 	* path.cc (normalize_posix_path): Previous change failed to take root
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index e05f0b9c4..f82f6364a 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -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;