diff --git a/patches/winebuild-Fake_Dlls/0010-tools-winebuild-Add-syscall-thunks-for-64-bit.patch b/patches/winebuild-Fake_Dlls/0010-tools-winebuild-Add-syscall-thunks-for-64-bit.patch index 9bbe53dc..e6f37835 100644 --- a/patches/winebuild-Fake_Dlls/0010-tools-winebuild-Add-syscall-thunks-for-64-bit.patch +++ b/patches/winebuild-Fake_Dlls/0010-tools-winebuild-Add-syscall-thunks-for-64-bit.patch @@ -1,4 +1,4 @@ -From 57bc2f7968034641df20e843a9b26014153202f6 Mon Sep 17 00:00:00 2001 +From b8b9396c2aa6701b4c42564abfdb7d3b9241e16b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Thu, 7 Sep 2017 00:38:09 +0200 Subject: tools/winebuild: Add syscall thunks for 64 bit. @@ -61,27 +61,27 @@ index 0d25360..bb344bb 100644 return status; } diff --git a/dlls/ntdll/thread.c b/dlls/ntdll/thread.c -index 59d64e1..84e9e45 100644 +index cc61659..0fbf25b 100644 --- a/dlls/ntdll/thread.c +++ b/dlls/ntdll/thread.c -@@ -55,6 +55,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(thread); - struct _KUSER_SHARED_DATA *user_shared_data = NULL; - static const WCHAR default_windirW[] = {'C',':','\\','w','i','n','d','o','w','s',0}; - -+extern void DECLSPEC_NORETURN __wine_syscall_dispatcher( void ); -+ +@@ -63,6 +63,8 @@ static const WCHAR default_windirW[] = {'C',':','\\','w','i','n','d','o','w','s' PUNHANDLED_EXCEPTION_FILTER unhandled_exception_filter = NULL; void (WINAPI *kernel32_start_process)(LPTHREAD_START_ROUTINE,void*) = NULL; -@@ -401,6 +403,8 @@ HANDLE thread_init(void) - user_shared_data->TickCountLowDeprecated = user_shared_data->u.TickCount.LowPart; - user_shared_data->TickCountMultiplier = 1 << 24; ++extern void DECLSPEC_NORETURN __wine_syscall_dispatcher( void ); ++ + /* info passed to a starting thread */ + struct startup_info + { +@@ -558,6 +560,8 @@ HANDLE thread_init(void) + + NtCreateKeyedEvent( &keyed_event, GENERIC_READ | GENERIC_WRITE, NULL, 0 ); + *((void **)&user_shared_data->SystemCall) = __wine_syscall_dispatcher; + - fill_cpu_info(); + return exe_file; + } - NtCreateKeyedEvent( &keyed_event, GENERIC_READ | GENERIC_WRITE, NULL, 0 ); diff --git a/libs/wine/loader.c b/libs/wine/loader.c index 0a64ea4..e2ae56d 100644 --- a/libs/wine/loader.c