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
5f3d3a8d
Commit
5f3d3a8d
authored
Oct 23, 1999
by
Gerard Patel
Committed by
Alexandre Julliard
Oct 23, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder parameters to fix position of base reg relative to exception
frame.
parent
ab7fa6de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
exception.c
dlls/ntdll/exception.c
+8
-6
No files found.
dlls/ntdll/exception.c
View file @
5f3d3a8d
...
@@ -98,10 +98,12 @@ static DWORD CALLBACK EXC_UnwindHandler( EXCEPTION_RECORD *rec, EXCEPTION_FRAME
...
@@ -98,10 +98,12 @@ static DWORD CALLBACK EXC_UnwindHandler( EXCEPTION_RECORD *rec, EXCEPTION_FRAME
*
*
* Call an exception handler, setting up an exception frame to catch exceptions
* Call an exception handler, setting up an exception frame to catch exceptions
* happening during the handler execution.
* happening during the handler execution.
* Please do not change the first 4 parameters order in any way - some exceptions handlers
* rely on Base Pointer (EBP) to have a fixed position related to the exception frame
*/
*/
static
DWORD
EXC_CallHandler
(
PEXCEPTION_HANDLER
handler
,
PEXCEPTION_HANDLER
nested_handler
,
static
DWORD
EXC_CallHandler
(
EXCEPTION_RECORD
*
record
,
EXCEPTION_FRAME
*
frame
,
EXCEPTION_RECORD
*
record
,
EXCEPTION_FRAME
*
frame
,
CONTEXT
*
context
,
EXCEPTION_FRAME
**
dispatcher
,
CONTEXT
*
context
,
EXCEPTION_FRAME
**
dispatcher
)
PEXCEPTION_HANDLER
handler
,
PEXCEPTION_HANDLER
nested_handler
)
{
{
EXC_NESTED_FRAME
newframe
;
EXC_NESTED_FRAME
newframe
;
DWORD
ret
;
DWORD
ret
;
...
@@ -175,7 +177,7 @@ void WINAPI REGS_FUNC(RtlRaiseException)( EXCEPTION_RECORD *rec, CONTEXT *contex
...
@@ -175,7 +177,7 @@ void WINAPI REGS_FUNC(RtlRaiseException)( EXCEPTION_RECORD *rec, CONTEXT *contex
}
}
/* Call handler */
/* Call handler */
res
=
EXC_CallHandler
(
frame
->
Handler
,
EXC_RaiseHandler
,
rec
,
frame
,
context
,
&
dispatch
);
res
=
EXC_CallHandler
(
rec
,
frame
,
context
,
&
dispatch
,
frame
->
Handler
,
EXC_RaiseHandler
);
if
(
frame
==
nested_frame
)
if
(
frame
==
nested_frame
)
{
{
/* no longer nested */
/* no longer nested */
...
@@ -267,8 +269,8 @@ void WINAPI REGS_FUNC(RtlUnwind)( PEXCEPTION_FRAME pEndFrame, LPVOID unusedEip,
...
@@ -267,8 +269,8 @@ void WINAPI REGS_FUNC(RtlUnwind)( PEXCEPTION_FRAME pEndFrame, LPVOID unusedEip,
}
}
/* Call handler */
/* Call handler */
switch
(
EXC_CallHandler
(
frame
->
Handler
,
EXC_UnwindHandler
,
pRecord
,
switch
(
EXC_CallHandler
(
pRecord
,
frame
,
context
,
&
dispatch
,
frame
,
context
,
&
dispatch
))
frame
->
Handler
,
EXC_UnwindHandler
))
{
{
case
ExceptionContinueSearch
:
case
ExceptionContinueSearch
:
break
;
break
;
...
...
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