diff options
author | Christopher Faylor <me@cgf.cx> | 2000-09-18 02:20:42 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-09-18 02:20:42 +0000 |
commit | ca7ea5a6e7cd91a4b2a3c0b6444125682bf9834e (patch) | |
tree | 67b87debf0c0559bed946dddb6eb1b147895e2b0 /winsup/cygwin/exceptions.cc | |
parent | a12b2260d0e812945b4463a9c65e1d227d10b0e0 (diff) | |
download | cygnal-ca7ea5a6e7cd91a4b2a3c0b6444125682bf9834e.tar.gz cygnal-ca7ea5a6e7cd91a4b2a3c0b6444125682bf9834e.tar.bz2 cygnal-ca7ea5a6e7cd91a4b2a3c0b6444125682bf9834e.zip |
* exceptions.cc (interruptible): Return 0 if given an address in uncommitted
memory.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 82ef8861c..5fcb69ae9 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -601,7 +601,7 @@ interruptible (DWORD pc, int testvalid = 0) /* Apparently Windows 95 can sometimes return bogus addresses from GetThreadContext. These resolve to an allocation base == 0. These should *never* be treated as interruptible. */ - if (!h) + if (!h || m.State != MEM_COMMIT) res = 0; else if (testvalid) res = 1; /* All we wanted to know was if this was a valid module. */ |