Speed up relay32, snoop16 and snoop32 include/excludes by doing them
just once at creation time.
diff --git a/relay32/snoop.c b/relay32/snoop.c
index 8db202f..aac32c8 100644
--- a/relay32/snoop.c
+++ b/relay32/snoop.c
@@ -197,6 +197,8 @@
}
if (!dll) /* probably internal */
return origfun;
+ if (!SNOOP_ShowDebugmsgSnoop(dll->name,ordinal,name))
+ return origfun;
assert(ordinal<dll->nrofordinals);
fun = dll->funs+ordinal;
if (!fun->name) fun->name = HEAP_strdupA(SystemHeap,0,name);
@@ -285,11 +287,6 @@
FIXME(snoop,"entrypoint 0x%08lx not found\n",entry);
return; /* oops */
}
- if (!SNOOP_ShowDebugmsgSnoop(dll->name, ordinal, fun->name)) {
- /* we don't display, so we don't need returndisplay either */
- EIP_reg(context)= (DWORD)fun->origfun;
- return;
- }
/* guess cdecl ... */
if (fun->nrofargs<0) {
/* Typical cdecl return frame is: