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
805f0699
Commit
805f0699
authored
Mar 11, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the WINEDEBUG variable from the environment of the debugger
process.
parent
8548fc29
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
except.c
dlls/kernel/except.c
+17
-2
No files found.
dlls/kernel/except.c
View file @
805f0699
...
@@ -219,11 +219,11 @@ static BOOL start_debugger(PEXCEPTION_POINTERS epointers, HANDLE hEvent)
...
@@ -219,11 +219,11 @@ static BOOL start_debugger(PEXCEPTION_POINTERS epointers, HANDLE hEvent)
{
{
OBJECT_ATTRIBUTES
attr
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
;
UNICODE_STRING
nameW
;
char
*
cmdline
,
*
env
,
*
p
;
HKEY
hDbgConf
;
HKEY
hDbgConf
;
DWORD
bAuto
=
FALSE
;
DWORD
bAuto
=
FALSE
;
PROCESS_INFORMATION
info
;
PROCESS_INFORMATION
info
;
STARTUPINFOA
startup
;
STARTUPINFOA
startup
;
char
*
cmdline
;
char
*
format
=
NULL
;
char
*
format
=
NULL
;
BOOL
ret
=
FALSE
;
BOOL
ret
=
FALSE
;
...
@@ -329,12 +329,27 @@ static BOOL start_debugger(PEXCEPTION_POINTERS epointers, HANDLE hEvent)
...
@@ -329,12 +329,27 @@ static BOOL start_debugger(PEXCEPTION_POINTERS epointers, HANDLE hEvent)
}
}
}
}
/* remove WINEDEBUG from the environment */
env
=
GetEnvironmentStringsA
();
for
(
p
=
env
;
*
p
;
p
+=
strlen
(
p
)
+
1
)
{
if
(
!
memcmp
(
p
,
"WINEDEBUG="
,
sizeof
(
"WINEDEBUG="
)
-
1
))
{
char
*
next
=
p
+
strlen
(
p
)
+
1
;
char
*
end
=
next
;
while
(
*
end
)
end
+=
strlen
(
end
)
+
1
;
memmove
(
p
,
next
,
end
+
1
-
next
);
break
;
}
}
TRACE
(
"Starting debugger %s
\n
"
,
debugstr_a
(
cmdline
));
TRACE
(
"Starting debugger %s
\n
"
,
debugstr_a
(
cmdline
));
memset
(
&
startup
,
0
,
sizeof
(
startup
));
memset
(
&
startup
,
0
,
sizeof
(
startup
));
startup
.
cb
=
sizeof
(
startup
);
startup
.
cb
=
sizeof
(
startup
);
startup
.
dwFlags
=
STARTF_USESHOWWINDOW
;
startup
.
dwFlags
=
STARTF_USESHOWWINDOW
;
startup
.
wShowWindow
=
SW_SHOWNORMAL
;
startup
.
wShowWindow
=
SW_SHOWNORMAL
;
ret
=
CreateProcessA
(
NULL
,
cmdline
,
NULL
,
NULL
,
TRUE
,
0
,
NULL
,
NULL
,
&
startup
,
&
info
);
ret
=
CreateProcessA
(
NULL
,
cmdline
,
NULL
,
NULL
,
TRUE
,
0
,
env
,
NULL
,
&
startup
,
&
info
);
FreeEnvironmentStringsA
(
env
);
if
(
ret
)
WaitForSingleObject
(
hEvent
,
INFINITE
);
/* wait for debugger to come up... */
if
(
ret
)
WaitForSingleObject
(
hEvent
,
INFINITE
);
/* wait for debugger to come up... */
else
ERR
(
"Couldn't start debugger (%s) (%ld)
\n
"
else
ERR
(
"Couldn't start debugger (%s) (%ld)
\n
"
...
...
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