* exceptions.cc (interruptible): Return 0 if given an address in uncommitted
memory.
This commit is contained in:
parent
a12b2260d0
commit
ca7ea5a6e7
@ -1,3 +1,8 @@
|
|||||||
|
Sun Sep 17 22:18:39 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* exceptions.cc (interruptible): Return 0 if given an address in
|
||||||
|
uncommitted memory.
|
||||||
|
|
||||||
2000-09-16 Egor Duda <deo@logos-m.ru>
|
2000-09-16 Egor Duda <deo@logos-m.ru>
|
||||||
|
|
||||||
* signal.cc (sleep): If interrupted by signal, return the
|
* signal.cc (sleep): If interrupted by signal, return the
|
||||||
|
@ -601,7 +601,7 @@ interruptible (DWORD pc, int testvalid = 0)
|
|||||||
/* Apparently Windows 95 can sometimes return bogus addresses from
|
/* Apparently Windows 95 can sometimes return bogus addresses from
|
||||||
GetThreadContext. These resolve to an allocation base == 0.
|
GetThreadContext. These resolve to an allocation base == 0.
|
||||||
These should *never* be treated as interruptible. */
|
These should *never* be treated as interruptible. */
|
||||||
if (!h)
|
if (!h || m.State != MEM_COMMIT)
|
||||||
res = 0;
|
res = 0;
|
||||||
else if (testvalid)
|
else if (testvalid)
|
||||||
res = 1; /* All we wanted to know was if this was a valid module. */
|
res = 1; /* All we wanted to know was if this was a valid module. */
|
||||||
|
Loading…
Reference in New Issue
Block a user