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
8b4d5e6e
Commit
8b4d5e6e
authored
Oct 19, 2021
by
Eric Pouech
Committed by
Alexandre Julliard
Oct 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Improve error handling in SymSetContext().
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
76c4e691
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
dbghelp.c
dlls/dbghelp/dbghelp.c
+4
-2
No files found.
dlls/dbghelp/dbghelp.c
View file @
8b4d5e6e
...
...
@@ -609,6 +609,8 @@ BOOL WINAPI SymSetContext(HANDLE hProcess, PIMAGEHLP_STACK_FRAME StackFrame,
struct
process
*
pcs
=
process_find_by_handle
(
hProcess
);
if
(
!
pcs
)
return
FALSE
;
if
(
!
module_find_by_addr
(
pcs
,
StackFrame
->
InstructionOffset
,
DMT_UNKNOWN
))
return
FALSE
;
if
(
pcs
->
ctx_frame
.
ReturnOffset
==
StackFrame
->
ReturnOffset
&&
pcs
->
ctx_frame
.
FrameOffset
==
StackFrame
->
FrameOffset
&&
pcs
->
ctx_frame
.
StackOffset
==
StackFrame
->
StackOffset
)
...
...
@@ -618,12 +620,12 @@ BOOL WINAPI SymSetContext(HANDLE hProcess, PIMAGEHLP_STACK_FRAME StackFrame,
pcs
->
ctx_frame
.
FrameOffset
,
pcs
->
ctx_frame
.
StackOffset
);
pcs
->
ctx_frame
.
InstructionOffset
=
StackFrame
->
InstructionOffset
;
SetLastError
(
ERROR_
ACCESS_DENIED
);
/* latest MSDN says ERROR_SUCCESS */
SetLastError
(
ERROR_
SUCCESS
);
return
FALSE
;
}
pcs
->
ctx_frame
=
*
StackFrame
;
/*
MSDN states that
Context is not (no longer?) used */
/* Context is not (no longer?) used */
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