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
c61eb035
Commit
c61eb035
authored
Nov 07, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not free the handles once they have been sent to the client (thanks
to Jeremy White).
parent
cd168e77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
debugger.c
server/debugger.c
+19
-14
No files found.
server/debugger.c
View file @
c61eb035
...
...
@@ -102,21 +102,26 @@ static int fill_debug_event( struct thread *debugger, struct thread *thread,
/* free a debug event structure */
static
void
free_event
(
struct
thread
*
debugger
,
struct
debug_event
*
event
)
{
switch
(
event
->
code
)
/* If the event has been sent already, the handles are now under the */
/* responsibility of the debugger process, so we don't touch them */
if
(
!
event
->
sent
)
{
case
CREATE_THREAD_DEBUG_EVENT
:
close_handle
(
debugger
->
process
,
event
->
data
.
create_thread
.
handle
);
break
;
case
CREATE_PROCESS_DEBUG_EVENT
:
if
(
event
->
data
.
create_process
.
file
!=
-
1
)
close_handle
(
debugger
->
process
,
event
->
data
.
create_process
.
file
);
close_handle
(
debugger
->
process
,
event
->
data
.
create_process
.
thread
);
close_handle
(
debugger
->
process
,
event
->
data
.
create_process
.
process
);
break
;
case
LOAD_DLL_DEBUG_EVENT
:
if
(
event
->
data
.
load_dll
.
handle
!=
-
1
)
close_handle
(
debugger
->
process
,
event
->
data
.
load_dll
.
handle
);
break
;
switch
(
event
->
code
)
{
case
CREATE_THREAD_DEBUG_EVENT
:
close_handle
(
debugger
->
process
,
event
->
data
.
create_thread
.
handle
);
break
;
case
CREATE_PROCESS_DEBUG_EVENT
:
if
(
event
->
data
.
create_process
.
file
!=
-
1
)
close_handle
(
debugger
->
process
,
event
->
data
.
create_process
.
file
);
close_handle
(
debugger
->
process
,
event
->
data
.
create_process
.
thread
);
close_handle
(
debugger
->
process
,
event
->
data
.
create_process
.
process
);
break
;
case
LOAD_DLL_DEBUG_EVENT
:
if
(
event
->
data
.
load_dll
.
handle
!=
-
1
)
close_handle
(
debugger
->
process
,
event
->
data
.
load_dll
.
handle
);
break
;
}
}
event
->
thread
->
debug_event
=
NULL
;
release_object
(
event
->
thread
);
...
...
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