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
ee0b909f
Commit
ee0b909f
authored
May 18, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Export RtlWow64Get/SetThreadContext() on all 64-bit platforms.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8eda3fcc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
ntdll.spec
dlls/ntdll/ntdll.spec
+2
-2
process.c
dlls/ntdll/process.c
+18
-0
signal_x86_64.c
dlls/ntdll/signal_x86_64.c
+0
-18
thread.c
dlls/ntdll/unix/thread.c
+2
-2
No files found.
dlls/ntdll/ntdll.spec
View file @
ee0b909f
...
...
@@ -1073,9 +1073,9 @@
@ stdcall -arch=win64 RtlWow64GetCpuAreaInfo(ptr long ptr)
@ stdcall RtlWow64GetCurrentMachine()
@ stdcall RtlWow64GetProcessMachines(long ptr ptr)
@ stdcall -arch=
x86_
64 RtlWow64GetThreadContext(long ptr)
@ stdcall -arch=
win
64 RtlWow64GetThreadContext(long ptr)
@ stdcall RtlWow64IsWowGuestMachineSupported(long ptr)
@ stdcall -arch=
x86_
64 RtlWow64SetThreadContext(long ptr)
@ stdcall -arch=
win
64 RtlWow64SetThreadContext(long ptr)
@ stub RtlWriteMemoryStream
@ stdcall RtlWriteRegistryValue(long ptr ptr long ptr long)
@ stub RtlZeroHeap
...
...
dlls/ntdll/process.c
View file @
ee0b909f
...
...
@@ -142,6 +142,24 @@ NTSTATUS WINAPI RtlWow64GetCpuAreaInfo( WOW64_CPURESERVED *cpu, ULONG reserved,
return
STATUS_INVALID_PARAMETER
;
}
/******************************************************************************
* RtlWow64GetThreadContext (NTDLL.@)
*/
NTSTATUS
WINAPI
RtlWow64GetThreadContext
(
HANDLE
handle
,
WOW64_CONTEXT
*
context
)
{
return
NtQueryInformationThread
(
handle
,
ThreadWow64Context
,
context
,
sizeof
(
*
context
),
NULL
);
}
/******************************************************************************
* RtlWow64SetThreadContext (NTDLL.@)
*/
NTSTATUS
WINAPI
RtlWow64SetThreadContext
(
HANDLE
handle
,
const
WOW64_CONTEXT
*
context
)
{
return
NtSetInformationThread
(
handle
,
ThreadWow64Context
,
context
,
sizeof
(
*
context
)
);
}
#endif
/**********************************************************************
...
...
dlls/ntdll/signal_x86_64.c
View file @
ee0b909f
...
...
@@ -343,24 +343,6 @@ __ASM_GLOBAL_FUNC( RtlCaptureContext,
"fxsave 0x100(%rcx)
\n\t
"
/* context->FltSave */
"ret"
);
/******************************************************************************
* RtlWow64GetThreadContext (NTDLL.@)
*/
NTSTATUS
WINAPI
RtlWow64GetThreadContext
(
HANDLE
handle
,
WOW64_CONTEXT
*
context
)
{
return
NtQueryInformationThread
(
handle
,
ThreadWow64Context
,
context
,
sizeof
(
*
context
),
NULL
);
}
/******************************************************************************
* RtlWow64SetThreadContext (NTDLL.@)
*/
NTSTATUS
WINAPI
RtlWow64SetThreadContext
(
HANDLE
handle
,
const
WOW64_CONTEXT
*
context
)
{
return
NtSetInformationThread
(
handle
,
ThreadWow64Context
,
context
,
sizeof
(
*
context
)
);
}
static
DWORD
__cdecl
nested_exception_handler
(
EXCEPTION_RECORD
*
rec
,
EXCEPTION_REGISTRATION_RECORD
*
frame
,
CONTEXT
*
context
,
EXCEPTION_REGISTRATION_RECORD
**
dispatcher
)
{
...
...
dlls/ntdll/unix/thread.c
View file @
ee0b909f
...
...
@@ -1666,7 +1666,7 @@ NTSTATUS WINAPI NtQueryInformationThread( HANDLE handle, THREADINFOCLASS class,
case
ThreadWow64Context
:
{
#ifdef _
_x86_64__
#ifdef _
WIN64
BOOL
self
;
WOW64_CONTEXT
*
context
=
data
;
...
...
@@ -1861,7 +1861,7 @@ NTSTATUS WINAPI NtSetInformationThread( HANDLE handle, THREADINFOCLASS class,
case
ThreadWow64Context
:
{
#ifdef _
_x86_64__
#ifdef _
WIN64
BOOL
self
;
const
WOW64_CONTEXT
*
context
=
data
;
...
...
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