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
0497af09
Commit
0497af09
authored
Feb 24, 2005
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Feb 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Match RaiseException and EXCEPTION_RECORD to SDK definitions.
parent
29d7b817
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
17 additions
and
17 deletions
+17
-17
except.c
dlls/kernel/except.c
+1
-1
critsection.c
dlls/ntdll/critsection.c
+1
-1
exception.c
dlls/ntdll/exception.c
+1
-1
loader.c
dlls/ntdll/loader.c
+2
-2
signal_i386.c
dlls/ntdll/signal_i386.c
+1
-1
signal_powerpc.c
dlls/ntdll/signal_powerpc.c
+2
-2
signal_sparc.c
dlls/ntdll/signal_sparc.c
+1
-1
generated.c
dlls/ntdll/tests/generated.c
+3
-3
winbase.h
include/winbase.h
+1
-1
winnt.h
include/winnt.h
+4
-4
No files found.
dlls/kernel/except.c
View file @
0497af09
...
@@ -66,7 +66,7 @@ typedef INT (WINAPI *MessageBoxW_funcptr)(HWND,LPCWSTR,LPCWSTR,UINT);
...
@@ -66,7 +66,7 @@ typedef INT (WINAPI *MessageBoxW_funcptr)(HWND,LPCWSTR,LPCWSTR,UINT);
/*******************************************************************
/*******************************************************************
* RaiseException (KERNEL32.@)
* RaiseException (KERNEL32.@)
*/
*/
void
WINAPI
RaiseException
(
DWORD
code
,
DWORD
flags
,
DWORD
nbargs
,
const
LPDWORD
args
)
void
WINAPI
RaiseException
(
DWORD
code
,
DWORD
flags
,
DWORD
nbargs
,
const
ULONG_PTR
*
args
)
{
{
EXCEPTION_RECORD
record
;
EXCEPTION_RECORD
record
;
...
...
dlls/ntdll/critsection.c
View file @
0497af09
...
@@ -264,7 +264,7 @@ NTSTATUS WINAPI RtlpWaitForCriticalSection( RTL_CRITICAL_SECTION *crit )
...
@@ -264,7 +264,7 @@ NTSTATUS WINAPI RtlpWaitForCriticalSection( RTL_CRITICAL_SECTION *crit )
rec
.
ExceptionRecord
=
NULL
;
rec
.
ExceptionRecord
=
NULL
;
rec
.
ExceptionAddress
=
RtlRaiseException
;
/* sic */
rec
.
ExceptionAddress
=
RtlRaiseException
;
/* sic */
rec
.
NumberParameters
=
1
;
rec
.
NumberParameters
=
1
;
rec
.
ExceptionInformation
[
0
]
=
(
DWORD
)
crit
;
rec
.
ExceptionInformation
[
0
]
=
(
ULONG_PTR
)
crit
;
RtlRaiseException
(
&
rec
);
RtlRaiseException
(
&
rec
);
}
}
}
}
...
...
dlls/ntdll/exception.c
View file @
0497af09
...
@@ -266,7 +266,7 @@ void WINAPI EXC_RtlRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context )
...
@@ -266,7 +266,7 @@ void WINAPI EXC_RtlRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context )
/* Check frame address */
/* Check frame address */
if
(((
void
*
)
frame
<
NtCurrentTeb
()
->
Tib
.
StackLimit
)
||
if
(((
void
*
)
frame
<
NtCurrentTeb
()
->
Tib
.
StackLimit
)
||
((
void
*
)(
frame
+
1
)
>
NtCurrentTeb
()
->
Tib
.
StackBase
)
||
((
void
*
)(
frame
+
1
)
>
NtCurrentTeb
()
->
Tib
.
StackBase
)
||
(
int
)
frame
&
3
)
(
ULONG_PTR
)
frame
&
3
)
{
{
rec
->
ExceptionFlags
|=
EH_STACK_INVALID
;
rec
->
ExceptionFlags
|=
EH_STACK_INVALID
;
break
;
break
;
...
...
dlls/ntdll/loader.c
View file @
0497af09
...
@@ -178,8 +178,8 @@ static void stub_entry_point( const char *dll, const char *name, ... )
...
@@ -178,8 +178,8 @@ static void stub_entry_point( const char *dll, const char *name, ... )
rec
.
ExceptionAddress
=
*
((
void
**
)
&
dll
-
1
);
rec
.
ExceptionAddress
=
*
((
void
**
)
&
dll
-
1
);
#endif
#endif
rec
.
NumberParameters
=
2
;
rec
.
NumberParameters
=
2
;
rec
.
ExceptionInformation
[
0
]
=
(
DWORD
)
dll
;
rec
.
ExceptionInformation
[
0
]
=
(
ULONG_PTR
)
dll
;
rec
.
ExceptionInformation
[
1
]
=
(
DWORD
)
name
;
rec
.
ExceptionInformation
[
1
]
=
(
ULONG_PTR
)
name
;
for
(;;)
RtlRaiseException
(
&
rec
);
for
(;;)
RtlRaiseException
(
&
rec
);
}
}
...
...
dlls/ntdll/signal_i386.c
View file @
0497af09
...
@@ -1022,7 +1022,7 @@ static HANDLER_DEF(segv_handler)
...
@@ -1022,7 +1022,7 @@ static HANDLER_DEF(segv_handler)
#ifdef FAULT_ADDRESS
#ifdef FAULT_ADDRESS
rec
->
NumberParameters
=
2
;
rec
->
NumberParameters
=
2
;
rec
->
ExceptionInformation
[
0
]
=
(
get_error_code
(
HANDLER_CONTEXT
)
&
2
)
!=
0
;
rec
->
ExceptionInformation
[
0
]
=
(
get_error_code
(
HANDLER_CONTEXT
)
&
2
)
!=
0
;
rec
->
ExceptionInformation
[
1
]
=
(
DWORD
)
FAULT_ADDRESS
;
rec
->
ExceptionInformation
[
1
]
=
(
ULONG_PTR
)
FAULT_ADDRESS
;
#endif
#endif
break
;
break
;
case
T_ALIGNFLT
:
/* Alignment check exception */
case
T_ALIGNFLT
:
/* Alignment check exception */
...
...
dlls/ntdll/signal_powerpc.c
View file @
0497af09
...
@@ -317,7 +317,7 @@ static void do_segv( CONTEXT *context, int trap, int err, int code, void * addr
...
@@ -317,7 +317,7 @@ static void do_segv( CONTEXT *context, int trap, int err, int code, void * addr
case
SEGV_ACCERR
:
case
SEGV_ACCERR
:
rec
.
NumberParameters
=
2
;
rec
.
NumberParameters
=
2
;
rec
.
ExceptionInformation
[
0
]
=
0
;
/* FIXME ? */
rec
.
ExceptionInformation
[
0
]
=
0
;
/* FIXME ? */
rec
.
ExceptionInformation
[
1
]
=
(
DWORD
)
addr
;
rec
.
ExceptionInformation
[
1
]
=
(
ULONG_PTR
)
addr
;
if
(
!
(
page_fault_code
=
VIRTUAL_HandleFault
(
addr
)))
if
(
!
(
page_fault_code
=
VIRTUAL_HandleFault
(
addr
)))
return
;
return
;
rec
.
ExceptionCode
=
page_fault_code
;
rec
.
ExceptionCode
=
page_fault_code
;
...
@@ -339,7 +339,7 @@ static void do_segv( CONTEXT *context, int trap, int err, int code, void * addr
...
@@ -339,7 +339,7 @@ static void do_segv( CONTEXT *context, int trap, int err, int code, void * addr
/* FIXME: correct for all cases ? */
/* FIXME: correct for all cases ? */
rec
.
NumberParameters
=
2
;
rec
.
NumberParameters
=
2
;
rec
.
ExceptionInformation
[
0
]
=
0
;
/* FIXME ? */
rec
.
ExceptionInformation
[
0
]
=
0
;
/* FIXME ? */
rec
.
ExceptionInformation
[
1
]
=
(
DWORD
)
addr
;
rec
.
ExceptionInformation
[
1
]
=
(
ULONG_PTR
)
addr
;
if
(
!
(
page_fault_code
=
VIRTUAL_HandleFault
(
addr
)))
if
(
!
(
page_fault_code
=
VIRTUAL_HandleFault
(
addr
)))
return
;
return
;
rec
.
ExceptionCode
=
page_fault_code
;
rec
.
ExceptionCode
=
page_fault_code
;
...
...
dlls/ntdll/signal_sparc.c
View file @
0497af09
...
@@ -171,7 +171,7 @@ static void segv_handler( int signal, siginfo_t *info, ucontext_t *ucontext )
...
@@ -171,7 +171,7 @@ static void segv_handler( int signal, siginfo_t *info, ucontext_t *ucontext )
rec
.
ExceptionAddress
=
(
LPVOID
)
context
.
pc
;
rec
.
ExceptionAddress
=
(
LPVOID
)
context
.
pc
;
rec
.
NumberParameters
=
2
;
rec
.
NumberParameters
=
2
;
rec
.
ExceptionInformation
[
0
]
=
0
;
/* FIXME: read/write access ? */
rec
.
ExceptionInformation
[
0
]
=
0
;
/* FIXME: read/write access ? */
rec
.
ExceptionInformation
[
1
]
=
(
DWORD
)
info
->
si_addr
;
rec
.
ExceptionInformation
[
1
]
=
(
ULONG_PTR
)
info
->
si_addr
;
EXC_RtlRaiseException
(
&
rec
,
&
context
);
EXC_RtlRaiseException
(
&
rec
,
&
context
);
restore_context
(
&
context
,
ucontext
);
restore_context
(
&
context
,
ucontext
);
...
...
dlls/ntdll/tests/generated.c
View file @
0497af09
...
@@ -374,10 +374,10 @@ static void test_pack_EXCEPTION_RECORD(void)
...
@@ -374,10 +374,10 @@ static void test_pack_EXCEPTION_RECORD(void)
TEST_TYPE
(
EXCEPTION_RECORD
,
80
,
4
);
TEST_TYPE
(
EXCEPTION_RECORD
,
80
,
4
);
TEST_FIELD
(
EXCEPTION_RECORD
,
DWORD
,
ExceptionCode
,
0
,
4
,
4
);
TEST_FIELD
(
EXCEPTION_RECORD
,
DWORD
,
ExceptionCode
,
0
,
4
,
4
);
TEST_FIELD
(
EXCEPTION_RECORD
,
DWORD
,
ExceptionFlags
,
4
,
4
,
4
);
TEST_FIELD
(
EXCEPTION_RECORD
,
DWORD
,
ExceptionFlags
,
4
,
4
,
4
);
TEST_FIELD
(
EXCEPTION_RECORD
,
struct
_
_
EXCEPTION_RECORD
*
,
ExceptionRecord
,
8
,
4
,
4
);
TEST_FIELD
(
EXCEPTION_RECORD
,
struct
_EXCEPTION_RECORD
*
,
ExceptionRecord
,
8
,
4
,
4
);
TEST_FIELD
(
EXCEPTION_RECORD
,
L
PVOID
,
ExceptionAddress
,
12
,
4
,
4
);
TEST_FIELD
(
EXCEPTION_RECORD
,
PVOID
,
ExceptionAddress
,
12
,
4
,
4
);
TEST_FIELD
(
EXCEPTION_RECORD
,
DWORD
,
NumberParameters
,
16
,
4
,
4
);
TEST_FIELD
(
EXCEPTION_RECORD
,
DWORD
,
NumberParameters
,
16
,
4
,
4
);
TEST_FIELD
(
EXCEPTION_RECORD
,
DWORD
[
EXCEPTION_MAXIMUM_PARAMETERS
],
ExceptionInformation
,
20
,
60
,
4
);
TEST_FIELD
(
EXCEPTION_RECORD
,
ULONG_PTR
[
EXCEPTION_MAXIMUM_PARAMETERS
],
ExceptionInformation
,
20
,
60
,
4
);
}
}
static
void
test_pack_EXECUTION_STATE
(
void
)
static
void
test_pack_EXECUTION_STATE
(
void
)
...
...
include/winbase.h
View file @
0497af09
...
@@ -1600,7 +1600,7 @@ DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
...
@@ -1600,7 +1600,7 @@ DWORD WINAPI QueryDosDeviceW(LPCWSTR,LPWSTR,DWORD);
BOOL
WINAPI
QueryPerformanceCounter
(
LARGE_INTEGER
*
);
BOOL
WINAPI
QueryPerformanceCounter
(
LARGE_INTEGER
*
);
BOOL
WINAPI
QueryPerformanceFrequency
(
LARGE_INTEGER
*
);
BOOL
WINAPI
QueryPerformanceFrequency
(
LARGE_INTEGER
*
);
DWORD
WINAPI
QueueUserAPC
(
PAPCFUNC
,
HANDLE
,
ULONG_PTR
);
DWORD
WINAPI
QueueUserAPC
(
PAPCFUNC
,
HANDLE
,
ULONG_PTR
);
void
WINAPI
RaiseException
(
DWORD
,
DWORD
,
DWORD
,
const
LPDWORD
);
void
WINAPI
RaiseException
(
DWORD
,
DWORD
,
DWORD
,
const
ULONG_PTR
*
);
BOOL
WINAPI
ReadEventLogA
(
HANDLE
,
DWORD
,
DWORD
,
LPVOID
,
DWORD
,
DWORD
*
,
DWORD
*
);
BOOL
WINAPI
ReadEventLogA
(
HANDLE
,
DWORD
,
DWORD
,
LPVOID
,
DWORD
,
DWORD
*
,
DWORD
*
);
BOOL
WINAPI
ReadEventLogW
(
HANDLE
,
DWORD
,
DWORD
,
LPVOID
,
DWORD
,
DWORD
*
,
DWORD
*
);
BOOL
WINAPI
ReadEventLogW
(
HANDLE
,
DWORD
,
DWORD
,
LPVOID
,
DWORD
,
DWORD
*
,
DWORD
*
);
#define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
#define ReadEventLog WINELIB_NAME_AW(ReadEventLog)
...
...
include/winnt.h
View file @
0497af09
...
@@ -1494,15 +1494,15 @@ typedef CONTEXT *PCONTEXT;
...
@@ -1494,15 +1494,15 @@ typedef CONTEXT *PCONTEXT;
#define EXCEPTION_MAXIMUM_PARAMETERS 15
#define EXCEPTION_MAXIMUM_PARAMETERS 15
typedef
struct
_
_
EXCEPTION_RECORD
typedef
struct
_EXCEPTION_RECORD
{
{
DWORD
ExceptionCode
;
DWORD
ExceptionCode
;
DWORD
ExceptionFlags
;
DWORD
ExceptionFlags
;
struct
_
_EXCEPTION_RECORD
*
ExceptionRecord
;
struct
_EXCEPTION_RECORD
*
ExceptionRecord
;
LPVOID
ExceptionAddress
;
PVOID
ExceptionAddress
;
DWORD
NumberParameters
;
DWORD
NumberParameters
;
DWORD
ExceptionInformation
[
EXCEPTION_MAXIMUM_PARAMETERS
];
ULONG_PTR
ExceptionInformation
[
EXCEPTION_MAXIMUM_PARAMETERS
];
}
EXCEPTION_RECORD
,
*
PEXCEPTION_RECORD
;
}
EXCEPTION_RECORD
,
*
PEXCEPTION_RECORD
;
/*
/*
...
...
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