Commit 3ff81e3a authored by Billy Laws's avatar Billy Laws Committed by Alexandre Julliard

wow64: Add BT module thread termination callback.

parent 65e2c384
...@@ -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 );
} }
...@@ -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" );
......
...@@ -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
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment