kernel32: Don't clear WINEDEBUG in the debugger process if +winedbg is set.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7973699a8b
commit
a1d12ad5c6
|
@ -54,6 +54,7 @@
|
|||
#include "wine/debug.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(seh);
|
||||
WINE_DECLARE_DEBUG_CHANNEL(winedbg);
|
||||
|
||||
static PTOP_LEVEL_EXCEPTION_FILTER top_filter;
|
||||
|
||||
|
@ -289,6 +290,8 @@ static BOOL start_debugger(PEXCEPTION_POINTERS epointers, HANDLE hEvent)
|
|||
|
||||
/* make WINEDEBUG empty in the environment */
|
||||
env = GetEnvironmentStringsA();
|
||||
if (!TRACE_ON(winedbg))
|
||||
{
|
||||
for (p = env; *p; p += strlen(p) + 1)
|
||||
{
|
||||
if (!memcmp( p, "WINEDEBUG=", sizeof("WINEDEBUG=")-1 ))
|
||||
|
@ -300,6 +303,7 @@ static BOOL start_debugger(PEXCEPTION_POINTERS epointers, HANDLE hEvent)
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TRACE("Starting debugger %s\n", debugstr_a(cmdline));
|
||||
memset(&startup, 0, sizeof(startup));
|
||||
|
|
Loading…
Reference in New Issue