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
3ff81e3a
Commit
3ff81e3a
authored
Jul 28, 2023
by
Billy Laws
Committed by
Alexandre Julliard
Aug 18, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64: Add BT module thread termination callback.
parent
65e2c384
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
process.c
dlls/wow64/process.c
+2
-0
syscall.c
dlls/wow64/syscall.c
+2
-0
wow64_private.h
dlls/wow64/wow64_private.h
+1
-0
No files found.
dlls/wow64/process.c
View file @
3ff81e3a
...
@@ -1039,5 +1039,7 @@ NTSTATUS WINAPI wow64_NtTerminateThread( UINT *args )
...
@@ -1039,5 +1039,7 @@ NTSTATUS WINAPI wow64_NtTerminateThread( UINT *args )
HANDLE
handle
=
get_handle
(
&
args
);
HANDLE
handle
=
get_handle
(
&
args
);
LONG
exit_code
=
get_ulong
(
&
args
);
LONG
exit_code
=
get_ulong
(
&
args
);
if
(
pBTCpuThreadTerm
)
pBTCpuThreadTerm
(
handle
);
return
NtTerminateThread
(
handle
,
exit_code
);
return
NtTerminateThread
(
handle
,
exit_code
);
}
}
dlls/wow64/syscall.c
View file @
3ff81e3a
...
@@ -119,6 +119,7 @@ void (WINAPI *pBTCpuNotifyMemoryFree)( void *, SIZE_T ) = NULL;
...
@@ -119,6 +119,7 @@ void (WINAPI *pBTCpuNotifyMemoryFree)( void *, SIZE_T ) = NULL;
void
(
WINAPI
*
pBTCpuNotifyMemoryProtect
)(
void
*
,
SIZE_T
,
ULONG
)
=
NULL
;
void
(
WINAPI
*
pBTCpuNotifyMemoryProtect
)(
void
*
,
SIZE_T
,
ULONG
)
=
NULL
;
void
(
WINAPI
*
pBTCpuNotifyUnmapViewOfSection
)(
void
*
)
=
NULL
;
void
(
WINAPI
*
pBTCpuNotifyUnmapViewOfSection
)(
void
*
)
=
NULL
;
void
(
WINAPI
*
pBTCpuUpdateProcessorInformation
)(
SYSTEM_CPU_INFORMATION
*
)
=
NULL
;
void
(
WINAPI
*
pBTCpuUpdateProcessorInformation
)(
SYSTEM_CPU_INFORMATION
*
)
=
NULL
;
void
(
WINAPI
*
pBTCpuThreadTerm
)(
HANDLE
)
=
NULL
;
void
*
dummy
=
RtlUnwind
;
void
*
dummy
=
RtlUnwind
;
...
@@ -913,6 +914,7 @@ static DWORD WINAPI process_init( RTL_RUN_ONCE *once, void *param, void **contex
...
@@ -913,6 +914,7 @@ static DWORD WINAPI process_init( RTL_RUN_ONCE *once, void *param, void **contex
GET_PTR
(
BTCpuNotifyMemoryProtect
);
GET_PTR
(
BTCpuNotifyMemoryProtect
);
GET_PTR
(
BTCpuNotifyUnmapViewOfSection
);
GET_PTR
(
BTCpuNotifyUnmapViewOfSection
);
GET_PTR
(
BTCpuUpdateProcessorInformation
);
GET_PTR
(
BTCpuUpdateProcessorInformation
);
GET_PTR
(
BTCpuThreadTerm
);
GET_PTR
(
__wine_get_unix_opcode
);
GET_PTR
(
__wine_get_unix_opcode
);
module
=
load_64bit_module
(
L"wow64win.dll"
);
module
=
load_64bit_module
(
L"wow64win.dll"
);
...
...
dlls/wow64/wow64_private.h
View file @
3ff81e3a
...
@@ -47,6 +47,7 @@ extern void (WINAPI *pBTCpuNotifyMemoryFree)( void *, SIZE_T );
...
@@ -47,6 +47,7 @@ extern void (WINAPI *pBTCpuNotifyMemoryFree)( void *, SIZE_T );
extern
void
(
WINAPI
*
pBTCpuNotifyMemoryProtect
)(
void
*
,
SIZE_T
,
ULONG
);
extern
void
(
WINAPI
*
pBTCpuNotifyMemoryProtect
)(
void
*
,
SIZE_T
,
ULONG
);
extern
void
(
WINAPI
*
pBTCpuNotifyUnmapViewOfSection
)(
void
*
);
extern
void
(
WINAPI
*
pBTCpuNotifyUnmapViewOfSection
)(
void
*
);
extern
void
(
WINAPI
*
pBTCpuUpdateProcessorInformation
)(
SYSTEM_CPU_INFORMATION
*
);
extern
void
(
WINAPI
*
pBTCpuUpdateProcessorInformation
)(
SYSTEM_CPU_INFORMATION
*
);
extern
void
(
WINAPI
*
pBTCpuThreadTerm
)(
HANDLE
);
struct
object_attr64
struct
object_attr64
{
{
...
...
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