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
be23f5a7
Commit
be23f5a7
authored
May 23, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Grab the current pointer to avoid referencing it after it could become invalid.
parent
6a651fa7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
debugger.c
server/debugger.c
+5
-4
No files found.
server/debugger.c
View file @
be23f5a7
...
...
@@ -632,6 +632,7 @@ DECL_HANDLER(queue_exception_event)
{
debug_event_t
data
;
struct
debug_event
*
event
;
struct
thread
*
thread
=
current
;
if
((
req
->
len
%
sizeof
(
client_ptr_t
))
!=
0
||
req
->
len
>
get_req_data_size
()
||
...
...
@@ -649,19 +650,19 @@ DECL_HANDLER(queue_exception_event)
data
.
exception
.
nb_params
=
req
->
len
/
sizeof
(
client_ptr_t
);
memcpy
(
data
.
exception
.
params
,
get_req_data
(),
req
->
len
);
if
((
event
=
alloc_debug_event
(
current
,
EXCEPTION_DEBUG_EVENT
,
&
data
)))
if
((
event
=
alloc_debug_event
(
thread
,
EXCEPTION_DEBUG_EVENT
,
&
data
)))
{
const
context_t
*
context
=
(
const
context_t
*
)((
const
char
*
)
get_req_data
()
+
req
->
len
);
data_size_t
size
=
get_req_data_size
()
-
req
->
len
;
memset
(
&
event
->
context
,
0
,
sizeof
(
event
->
context
)
);
memcpy
(
&
event
->
context
,
context
,
min
(
sizeof
(
event
->
context
),
size
)
);
current
->
context
=
&
event
->
context
;
thread
->
context
=
&
event
->
context
;
if
((
reply
->
handle
=
alloc_handle
(
current
->
process
,
event
,
SYNCHRONIZE
,
0
)))
if
((
reply
->
handle
=
alloc_handle
(
thread
->
process
,
event
,
SYNCHRONIZE
,
0
)))
{
link_event
(
event
);
suspend_process
(
current
->
process
);
suspend_process
(
thread
->
process
);
}
release_object
(
event
);
}
...
...
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