Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
a1d12ad5
Commit
a1d12ad5
authored
Aug 15, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
>
parent
7973699a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
except.c
dlls/kernel32/except.c
+11
-7
No files found.
dlls/kernel32/except.c
View file @
a1d12ad5
...
...
@@ -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,15 +290,18 @@ static BOOL start_debugger(PEXCEPTION_POINTERS epointers, HANDLE hEvent)
/* make WINEDEBUG empty in the environment */
env
=
GetEnvironmentStringsA
();
for
(
p
=
env
;
*
p
;
p
+=
strlen
(
p
)
+
1
)
if
(
!
TRACE_ON
(
winedbg
)
)
{
if
(
!
memcmp
(
p
,
"WINEDEBUG="
,
sizeof
(
"WINEDEBUG="
)
-
1
)
)
for
(
p
=
env
;
*
p
;
p
+=
strlen
(
p
)
+
1
)
{
char
*
next
=
p
+
strlen
(
p
);
char
*
end
=
next
+
1
;
while
(
*
end
)
end
+=
strlen
(
end
)
+
1
;
memmove
(
p
+
sizeof
(
"WINEDEBUG="
)
-
1
,
next
,
end
+
1
-
next
);
break
;
if
(
!
memcmp
(
p
,
"WINEDEBUG="
,
sizeof
(
"WINEDEBUG="
)
-
1
))
{
char
*
next
=
p
+
strlen
(
p
);
char
*
end
=
next
+
1
;
while
(
*
end
)
end
+=
strlen
(
end
)
+
1
;
memmove
(
p
+
sizeof
(
"WINEDEBUG="
)
-
1
,
next
,
end
+
1
-
next
);
break
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment