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
90885060
Commit
90885060
authored
Feb 06, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Move Wow64Get/SetThreadContext implementation to kernelbase.
parent
124ea59b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
31 deletions
+35
-31
kernel32.spec
dlls/kernel32/kernel32.spec
+2
-2
thread.c
dlls/kernel32/thread.c
+0
-29
kernelbase.spec
dlls/kernelbase/kernelbase.spec
+3
-0
thread.c
dlls/kernelbase/thread.c
+30
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
90885060
...
...
@@ -1638,10 +1638,10 @@
@ stdcall WinExec(str long)
@ stdcall -import Wow64DisableWow64FsRedirection(ptr)
@ stdcall -import Wow64EnableWow64FsRedirection(long)
@ stdcall Wow64GetThreadContext(long ptr)
@ stdcall
-import
Wow64GetThreadContext(long ptr)
@ stdcall Wow64GetThreadSelectorEntry(long long ptr)
@ stdcall -import Wow64RevertWow64FsRedirection(ptr)
@ stdcall Wow64SetThreadContext(long ptr)
@ stdcall
-import
Wow64SetThreadContext(long ptr)
# @ stub Wow64SuspendThread
@ stdcall -import WriteConsoleA(long ptr long ptr ptr)
@ stdcall -import WriteConsoleInputA(long ptr long ptr)
...
...
dlls/kernel32/thread.c
View file @
90885060
...
...
@@ -73,35 +73,6 @@ void WINAPI FreeLibraryAndExitThread(HINSTANCE hLibModule, DWORD dwExitCode)
/***********************************************************************
* Wow64SetThreadContext [KERNEL32.@]
*/
BOOL
WINAPI
Wow64SetThreadContext
(
HANDLE
handle
,
const
WOW64_CONTEXT
*
context
)
{
#ifdef __i386__
return
set_ntstatus
(
NtSetContextThread
(
handle
,
(
const
CONTEXT
*
)
context
));
#elif defined(__x86_64__)
return
set_ntstatus
(
RtlWow64SetThreadContext
(
handle
,
context
));
#else
return
set_ntstatus
(
STATUS_NOT_IMPLEMENTED
);
#endif
}
/***********************************************************************
* Wow64GetThreadContext [KERNEL32.@]
*/
BOOL
WINAPI
Wow64GetThreadContext
(
HANDLE
handle
,
WOW64_CONTEXT
*
context
)
{
#ifdef __i386__
return
set_ntstatus
(
NtGetContextThread
(
handle
,
(
CONTEXT
*
)
context
));
#elif defined(__x86_64__)
return
set_ntstatus
(
RtlWow64GetThreadContext
(
handle
,
context
));
#else
return
set_ntstatus
(
STATUS_NOT_IMPLEMENTED
);
#endif
}
/***********************************************************************
* Wow64GetThreadSelectorEntry [KERNEL32.@]
*/
BOOL
WINAPI
Wow64GetThreadSelectorEntry
(
HANDLE
thread
,
DWORD
selector
,
WOW64_LDT_ENTRY
*
selector_entry
)
...
...
dlls/kernelbase/kernelbase.spec
View file @
90885060
...
...
@@ -1759,8 +1759,11 @@
@ stdcall WideCharToMultiByte(long long wstr long ptr long ptr ptr)
@ stdcall Wow64DisableWow64FsRedirection(ptr)
@ stdcall Wow64EnableWow64FsRedirection(long) kernelbase_Wow64EnableWow64FsRedirection
@ stdcall Wow64GetThreadContext(long ptr)
@ stdcall Wow64RevertWow64FsRedirection(ptr)
@ stdcall Wow64SetThreadContext(long ptr)
# @ stub Wow64SetThreadDefaultGuestMachine
# @ stub Wow64SuspendThread
# @ stub -arch=i386 Wow64Transition
@ stdcall WriteConsoleA(long ptr long ptr ptr)
@ stdcall WriteConsoleInputA(long ptr long ptr)
...
...
dlls/kernelbase/thread.c
View file @
90885060
...
...
@@ -763,6 +763,36 @@ BOOL WINAPI DECLSPEC_HOTPATCH TlsSetValue( DWORD index, LPVOID value )
/***********************************************************************
* Wow64GetThreadContext (kernelbase.@)
*/
BOOL
WINAPI
Wow64GetThreadContext
(
HANDLE
handle
,
WOW64_CONTEXT
*
context
)
{
#ifdef __i386__
return
set_ntstatus
(
NtGetContextThread
(
handle
,
(
CONTEXT
*
)
context
));
#elif defined(__x86_64__)
return
set_ntstatus
(
RtlWow64GetThreadContext
(
handle
,
context
));
#else
return
set_ntstatus
(
STATUS_NOT_IMPLEMENTED
);
#endif
}
/***********************************************************************
* Wow64SetThreadContext (kernelbase.@)
*/
BOOL
WINAPI
Wow64SetThreadContext
(
HANDLE
handle
,
const
WOW64_CONTEXT
*
context
)
{
#ifdef __i386__
return
set_ntstatus
(
NtSetContextThread
(
handle
,
(
const
CONTEXT
*
)
context
));
#elif defined(__x86_64__)
return
set_ntstatus
(
RtlWow64SetThreadContext
(
handle
,
context
));
#else
return
set_ntstatus
(
STATUS_NOT_IMPLEMENTED
);
#endif
}
/***********************************************************************
* Fibers
***********************************************************************/
...
...
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