mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
ntdll: Return from snoop tracing helpers earlier if tracing is disabled.
This allows turning off and on snooping from task manager. Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
52e35a0922
commit
6262cc325f
1 changed files with 8 additions and 0 deletions
|
@ -1085,6 +1085,8 @@ void WINAPI __regs_SNOOP_Entry( CONTEXT *context )
|
|||
|
||||
context->Eip = (DWORD)fun->origfun;
|
||||
|
||||
if (!TRACE_ON(snoop)) return;
|
||||
|
||||
if (TRACE_ON(timestamp))
|
||||
print_timestamp();
|
||||
if (fun->name) DPRINTF("%04x:CALL %s.%s(",GetCurrentThreadId(),dll->name,fun->name);
|
||||
|
@ -1121,6 +1123,12 @@ void WINAPI __regs_SNOOP_Return( CONTEXT *context )
|
|||
if (ret->dll->funs[ret->ordinal].nrofargs<0)
|
||||
ret->dll->funs[ret->ordinal].nrofargs=(context->Esp - ret->origESP-4)/4;
|
||||
context->Eip = (DWORD)ret->origreturn;
|
||||
|
||||
if (!TRACE_ON(snoop)) {
|
||||
ret->origreturn = NULL; /* mark as empty */
|
||||
return;
|
||||
}
|
||||
|
||||
if (TRACE_ON(timestamp))
|
||||
print_timestamp();
|
||||
if (ret->args) {
|
||||
|
|
Loading…
Reference in a new issue