Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
e5d09bf3
Commit
e5d09bf3
authored
Jan 23, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 23, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: SymSetContext should return FALSE when setting twice the same
frame context.
parent
eca3715f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
dbghelp.c
dlls/dbghelp/dbghelp.c
+12
-0
No files found.
dlls/dbghelp/dbghelp.c
View file @
e5d09bf3
...
@@ -338,6 +338,18 @@ BOOL WINAPI SymSetContext(HANDLE hProcess, PIMAGEHLP_STACK_FRAME StackFrame,
...
@@ -338,6 +338,18 @@ BOOL WINAPI SymSetContext(HANDLE hProcess, PIMAGEHLP_STACK_FRAME StackFrame,
struct
process
*
pcs
=
process_find_by_handle
(
hProcess
);
struct
process
*
pcs
=
process_find_by_handle
(
hProcess
);
if
(
!
pcs
)
return
FALSE
;
if
(
!
pcs
)
return
FALSE
;
if
(
pcs
->
ctx_frame
.
ReturnOffset
==
StackFrame
->
ReturnOffset
&&
pcs
->
ctx_frame
.
FrameOffset
==
StackFrame
->
FrameOffset
&&
pcs
->
ctx_frame
.
StackOffset
==
StackFrame
->
StackOffset
)
{
TRACE
(
"Setting same frame {rtn=%s frm=%s stk=%s}
\n
"
,
wine_dbgstr_longlong
(
pcs
->
ctx_frame
.
ReturnOffset
),
wine_dbgstr_longlong
(
pcs
->
ctx_frame
.
FrameOffset
),
wine_dbgstr_longlong
(
pcs
->
ctx_frame
.
StackOffset
));
SetLastError
(
ERROR_ACCESS_DENIED
);
/* latest MSDN says ERROR_SUCCESS */
return
FALSE
;
}
pcs
->
ctx_frame
=
*
StackFrame
;
pcs
->
ctx_frame
=
*
StackFrame
;
/* MSDN states that Context is not (no longer?) used */
/* MSDN states that Context is not (no longer?) used */
return
TRUE
;
return
TRUE
;
...
...
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