From 2352cf79ce0355b566b5478faf747aa266d6861b Mon Sep 17 00:00:00 2001 From: Juergen Schmied Date: Sat, 24 Jun 2000 13:33:26 +0000 Subject: [PATCH] Avoid calling the exception handler in some cases. --- relay32/snoop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/relay32/snoop.c b/relay32/snoop.c index 58a89e49f30..692a097a8ee 100644 --- a/relay32/snoop.c +++ b/relay32/snoop.c @@ -214,7 +214,8 @@ SNOOP_PrintArg(DWORD x) { if ( !HIWORD(x) || !VirtualQuery((LPVOID)x,&mbi,sizeof(mbi)) || - !mbi.Type + !mbi.Type || + (mbi.Protect == PAGE_NOACCESS) ) { sprintf(buf,"%08lx",x); return buf;