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
a75e3f73
Commit
a75e3f73
authored
Jul 20, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Call NtRaiseException directly from RtlRaiseException on i386.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1522280e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
15 deletions
+31
-15
api-ms-win-core-rtlsupport-l1-1-0.spec
...-rtlsupport-l1-1-0/api-ms-win-core-rtlsupport-l1-1-0.spec
+1
-1
api-ms-win-core-rtlsupport-l1-2-0.spec
...-rtlsupport-l1-2-0/api-ms-win-core-rtlsupport-l1-2-0.spec
+1
-1
kernel32.spec
dlls/kernel32/kernel32.spec
+2
-2
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-1
signal_i386.c
dlls/ntdll/signal_i386.c
+25
-9
ntoskrnl.exe.spec
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+1
-1
No files found.
dlls/api-ms-win-core-rtlsupport-l1-1-0/api-ms-win-core-rtlsupport-l1-1-0.spec
View file @
a75e3f73
...
...
@@ -8,7 +8,7 @@
@ cdecl -arch=x86_64 RtlInstallFunctionTableCallback(long long long ptr ptr wstr) ntdll.RtlInstallFunctionTableCallback
@ stdcall -arch=arm,x86_64 RtlLookupFunctionEntry(long ptr ptr) ntdll.RtlLookupFunctionEntry
@ stdcall RtlPcToFileHeader(ptr ptr) ntdll.RtlPcToFileHeader
@ stdcall -
register
RtlRaiseException(ptr) ntdll.RtlRaiseException
@ stdcall -
norelay
RtlRaiseException(ptr) ntdll.RtlRaiseException
@ stdcall -arch=x86_64 RtlRestoreContext(ptr ptr) ntdll.RtlRestoreContext
@ stdcall -register RtlUnwind(ptr ptr ptr ptr) ntdll.RtlUnwind
@ stdcall -arch=x86_64 RtlUnwindEx(ptr ptr ptr ptr ptr ptr) ntdll.RtlUnwindEx
...
...
dlls/api-ms-win-core-rtlsupport-l1-2-0/api-ms-win-core-rtlsupport-l1-2-0.spec
View file @
a75e3f73
...
...
@@ -2,5 +2,5 @@
@ stdcall RtlCaptureStackBackTrace(long long ptr ptr) ntdll.RtlCaptureStackBackTrace
@ stdcall RtlCompareMemory(ptr ptr long) ntdll.RtlCompareMemory
@ stdcall RtlPcToFileHeader(ptr ptr) ntdll.RtlPcToFileHeader
@ stdcall -
register
RtlRaiseException(ptr) ntdll.RtlRaiseException
@ stdcall -
norelay
RtlRaiseException(ptr) ntdll.RtlRaiseException
@ stdcall -register RtlUnwind(ptr ptr ptr ptr) ntdll.RtlUnwind
dlls/kernel32/kernel32.spec
View file @
a75e3f73
...
...
@@ -1285,7 +1285,7 @@
@ stdcall RestoreLastError(long) ntdll.RtlRestoreLastWin32Error
@ stdcall ResumeThread(long)
@ cdecl -arch=arm,x86_64 RtlAddFunctionTable(ptr long long) ntdll.RtlAddFunctionTable
@ stdcall -
register
RtlCaptureContext(ptr) ntdll.RtlCaptureContext
@ stdcall -
norelay
RtlCaptureContext(ptr) ntdll.RtlCaptureContext
@ stdcall RtlCaptureStackBackTrace(long long ptr ptr) ntdll.RtlCaptureStackBackTrace
@ stdcall -arch=x86_64 RtlCompareMemory(ptr ptr long) ntdll.RtlCompareMemory
@ stdcall -arch=x86_64 RtlCopyMemory(ptr ptr long) ntdll.RtlCopyMemory
...
...
@@ -1295,7 +1295,7 @@
@ stdcall -arch=arm,x86_64 RtlLookupFunctionEntry(long ptr ptr) ntdll.RtlLookupFunctionEntry
@ stdcall RtlMoveMemory(ptr ptr long) ntdll.RtlMoveMemory
@ stdcall -arch=x86_64,arm RtlPcToFileHeader(ptr ptr) ntdll.RtlPcToFileHeader
@ stdcall -arch=arm -
register
RtlRaiseException(ptr) ntdll.RtlRaiseException
@ stdcall -arch=arm -
norelay
RtlRaiseException(ptr) ntdll.RtlRaiseException
@ stdcall -arch=x86_64 RtlRestoreContext(ptr ptr) ntdll.RtlRestoreContext
@ stdcall RtlUnwind(ptr ptr ptr long) ntdll.RtlUnwind
@ stdcall -arch=x86_64 RtlUnwindEx(long long ptr long ptr) ntdll.RtlUnwindEx
...
...
dlls/ntdll/ntdll.spec
View file @
a75e3f73
...
...
@@ -824,7 +824,7 @@
@ stdcall RtlQueryUnbiasedInterruptTime(ptr)
@ stub RtlQueueApcWow64Thread
@ stdcall RtlQueueWorkItem(ptr ptr long)
@ stdcall -
register
RtlRaiseException(ptr)
@ stdcall -
norelay
RtlRaiseException(ptr)
@ stdcall RtlRaiseStatus(long)
@ stdcall RtlRandom(ptr)
@ stub RtlRandomEx
...
...
dlls/ntdll/signal_i386.c
View file @
a75e3f73
...
...
@@ -2708,15 +2708,31 @@ NTSTATUS WINAPI NtRaiseException( EXCEPTION_RECORD *rec, CONTEXT *context, BOOL
/***********************************************************************
* RtlRaiseException (NTDLL.@)
*/
void
WINAPI
__regs_RtlRaiseException
(
EXCEPTION_RECORD
*
rec
,
CONTEXT
*
context
)
{
NTSTATUS
status
;
rec
->
ExceptionAddress
=
(
void
*
)
context
->
Eip
;
status
=
raise_exception
(
rec
,
context
,
TRUE
);
if
(
status
!=
STATUS_SUCCESS
)
raise_status
(
status
,
rec
);
}
DEFINE_REGS_ENTRYPOINT
(
RtlRaiseException
,
1
)
__ASM_STDCALL_FUNC
(
RtlRaiseException
,
4
,
"leal -0x2cc(%esp),%esp
\n\t
"
/* sizeof(CONTEXT) */
__ASM_CFI
(
".cfi_adjust_cfa_offset 0x2cc
\n\t
"
)
"pushl %esp
\n\t
"
/* context */
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"call "
__ASM_NAME
(
"RtlCaptureContext"
)
__ASM_STDCALL
(
4
)
"
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset -4
\n\t
"
)
"movl 0x2cc(%esp),%eax
\n\t
"
/* return address */
"movl 0x2d0(%esp),%ecx
\n\t
"
/* rec */
"movl %eax,0xb8(%esp)
\n\t
"
/* context->Eip */
"movl %eax,12(%ecx)
\n\t
"
/* rec->ExceptionAddress */
"leal 0x2d4(%esp),%eax
\n\t
"
"movl %eax,0xc4(%esp)
\n\t
"
/* context->Esp */
"movl %esp,%eax
\n\t
"
"pushl $1
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"pushl %eax
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"pushl %ecx
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset 4
\n\t
"
)
"call "
__ASM_NAME
(
"NtRaiseException"
)
__ASM_STDCALL
(
12
)
"
\n\t
"
__ASM_CFI
(
".cfi_adjust_cfa_offset -12
\n\t
"
)
"pushl %eax
\n\t
"
"call "
__ASM_NAME
(
"RtlRaiseStatus"
)
__ASM_STDCALL
(
4
)
"
\n\t
"
"ret $4"
)
/* actually never returns */
/*************************************************************************
...
...
dlls/ntoskrnl.exe/ntoskrnl.exe.spec
View file @
a75e3f73
...
...
@@ -1134,7 +1134,7 @@
@ stdcall RtlQueryAtomInAtomTable(ptr long ptr ptr ptr ptr) ntdll.RtlQueryAtomInAtomTable
@ stdcall RtlQueryRegistryValues(long ptr ptr ptr ptr) ntdll.RtlQueryRegistryValues
@ stdcall RtlQueryTimeZoneInformation(ptr) ntdll.RtlQueryTimeZoneInformation
@ stdcall -
register
RtlRaiseException(ptr) ntdll.RtlRaiseException
@ stdcall -
norelay
RtlRaiseException(ptr) ntdll.RtlRaiseException
@ stdcall RtlRandom(ptr) ntdll.RtlRandom
@ stub RtlRandomEx
@ stub RtlRealPredecessor
...
...
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