winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
April
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
November 2022
----- 2025 -----
April 2025
March 2025
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
1 participants
1171 discussions
Start a n
N
ew thread
Mohamad Al-Jaf : windows.media: Partially implement IClosedCaptionPropertiesStatics_get_FontColor.
by Alexandre Julliard
25 Nov '22
25 Nov '22
Module: wine Branch: master Commit: 3f1d5000175c38a4a650db12e54fc0088ae243f3 URL:
https://gitlab.winehq.org/wine/wine/-/commit/3f1d5000175c38a4a650db12e54fc0…
Author: Mohamad Al-Jaf <mohamadaljaf(a)gmail.com> Date: Thu Nov 24 03:48:10 2022 -0500 windows.media: Partially implement IClosedCaptionPropertiesStatics_get_FontColor. --- dlls/windows.media/captions.c | 6 ++++-- dlls/windows.media/tests/captions.c | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dlls/windows.media/captions.c b/dlls/windows.media/captions.c index 2e68948209e..41f14944ec0 100644 --- a/dlls/windows.media/captions.c +++ b/dlls/windows.media/captions.c @@ -128,8 +128,10 @@ DEFINE_IINSPECTABLE( captions, IClosedCaptionPropertiesStatics, struct captions_ static HRESULT WINAPI captions_get_FontColor( IClosedCaptionPropertiesStatics *iface, ClosedCaptionColor *value ) { - FIXME( "iface %p, value %p stub!\n", iface, value ); - return E_NOTIMPL; + FIXME( "iface %p, value %p semi-stub.\n", iface, value ); + + *value = ClosedCaptionColor_Default; + return S_OK; } static HRESULT WINAPI captions_get_ComputedFontColor( IClosedCaptionPropertiesStatics *iface, Color *value ) diff --git a/dlls/windows.media/tests/captions.c b/dlls/windows.media/tests/captions.c index 647e5eee1e5..875bfa41d20 100644 --- a/dlls/windows.media/tests/captions.c +++ b/dlls/windows.media/tests/captions.c @@ -87,8 +87,8 @@ static void test_CaptionStatics(void) color = 0xdeadbeef; hr = IClosedCaptionPropertiesStatics_get_FontColor( caption_statics, &color ); - todo_wine ok( hr == S_OK, "get_FontColor returned %#lx\n", hr ); - todo_wine ok( color == ClosedCaptionColor_Default, "expected default font color, got %d\n", color ); + ok( hr == S_OK, "get_FontColor returned %#lx\n", hr ); + ok( color == ClosedCaptionColor_Default, "expected default font color, got %d\n", color ); hr = IClosedCaptionPropertiesStatics_get_ComputedFontColor( caption_statics, &computed_color ); todo_wine ok( hr == E_INVALIDARG, "get_ComputedFontColor returned %#lx\n", hr );
1
0
0
0
Mohamad Al-Jaf : windows.media/tests: Add Closed Caption Properties tests.
by Alexandre Julliard
25 Nov '22
25 Nov '22
Module: wine Branch: master Commit: 10af2e50c81a5dadcd95f1a49caf7c61bdcb41c5 URL:
https://gitlab.winehq.org/wine/wine/-/commit/10af2e50c81a5dadcd95f1a49caf7c…
Author: Mohamad Al-Jaf <mohamadaljaf(a)gmail.com> Date: Thu Nov 24 02:51:57 2022 -0500 windows.media/tests: Add Closed Caption Properties tests. --- dlls/windows.media/tests/captions.c | 70 +++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/dlls/windows.media/tests/captions.c b/dlls/windows.media/tests/captions.c index b1e1f4fd334..647e5eee1e5 100644 --- a/dlls/windows.media/tests/captions.c +++ b/dlls/windows.media/tests/captions.c @@ -26,7 +26,10 @@ #include "roapi.h" #define WIDL_using_Windows_Foundation +#define WIDL_using_Windows_Foundation_Collections #include "windows.foundation.h" +#define WIDL_using_Windows_UI +#include "windows.ui.h" #define WIDL_using_Windows_Media_ClosedCaptioning #include "windows.media.closedcaptioning.h" @@ -55,6 +58,13 @@ static void test_CaptionStatics(void) HSTRING str; HRESULT hr; LONG ref; + /* Properties */ + ClosedCaptionColor color; + ClosedCaptionOpacity opacity; + ClosedCaptionSize size; + ClosedCaptionStyle style; + ClosedCaptionEdgeEffect effect; + Color computed_color; hr = WindowsCreateString( caption_properties_name, wcslen( caption_properties_name ), &str ); ok( hr == S_OK, "got hr %#lx.\n", hr ); @@ -75,6 +85,66 @@ static void test_CaptionStatics(void) hr = IActivationFactory_QueryInterface( factory, &IID_IClosedCaptionPropertiesStatics, (void **)&caption_statics ); ok( hr == S_OK, "got hr %#lx.\n", hr ); + color = 0xdeadbeef; + hr = IClosedCaptionPropertiesStatics_get_FontColor( caption_statics, &color ); + todo_wine ok( hr == S_OK, "get_FontColor returned %#lx\n", hr ); + todo_wine ok( color == ClosedCaptionColor_Default, "expected default font color, got %d\n", color ); + + hr = IClosedCaptionPropertiesStatics_get_ComputedFontColor( caption_statics, &computed_color ); + todo_wine ok( hr == E_INVALIDARG, "get_ComputedFontColor returned %#lx\n", hr ); + hr = IClosedCaptionPropertiesStatics_get_ComputedFontColor( caption_statics, NULL ); + todo_wine ok( hr == E_INVALIDARG, "get_ComputedFontColor returned %#lx\n", hr ); + + opacity = 0xdeadbeef; + hr = IClosedCaptionPropertiesStatics_get_FontOpacity( caption_statics, &opacity ); + todo_wine ok( hr == S_OK, "get_FontOpacity returned %#lx\n", hr ); + todo_wine ok( opacity == ClosedCaptionOpacity_Default, "expected default font opacity, got %d\n", opacity ); + + size = 0xdeadbeef; + hr = IClosedCaptionPropertiesStatics_get_FontSize( caption_statics, &size ); + todo_wine ok( hr == S_OK, "get_FontSize returned %#lx\n", hr ); + todo_wine ok( size == ClosedCaptionSize_Default, "expected default font size, got %d\n", size ); + + style = 0xdeadbeef; + hr = IClosedCaptionPropertiesStatics_get_FontStyle( caption_statics, &style ); + todo_wine ok( hr == S_OK, "get_FontStyle returned %#lx\n", hr ); + todo_wine ok( style == ClosedCaptionStyle_Default, "expected default font style, got %d\n", style ); + + effect = 0xdeadbeef; + hr = IClosedCaptionPropertiesStatics_get_FontEffect( caption_statics, &effect ); + todo_wine ok( hr == S_OK, "get_FontEffect returned %#lx\n", hr ); + todo_wine ok( effect == ClosedCaptionEdgeEffect_Default, "expected default font effect, got %d\n", effect ); + + color = 0xdeadbeef; + hr = IClosedCaptionPropertiesStatics_get_BackgroundColor( caption_statics, &color ); + todo_wine ok( hr == S_OK, "get_BackgroundColor returned %#lx\n", hr ); + todo_wine ok( color == ClosedCaptionColor_Default, "expected default background color, got %d\n", color ); + + hr = IClosedCaptionPropertiesStatics_get_ComputedBackgroundColor( caption_statics, &computed_color ); + todo_wine ok( hr == E_INVALIDARG, "get_ComputedBackgroundColor returned %#lx\n", hr ); + hr = IClosedCaptionPropertiesStatics_get_ComputedBackgroundColor( caption_statics, NULL ); + todo_wine ok( hr == E_INVALIDARG, "get_ComputedBackgroundColor returned %#lx\n", hr ); + + opacity = 0xdeadbeef; + hr = IClosedCaptionPropertiesStatics_get_BackgroundOpacity( caption_statics, &opacity ); + todo_wine ok( hr == S_OK, "get_BackgroundOpacity returned %#lx\n", hr ); + todo_wine ok( opacity == ClosedCaptionOpacity_Default, "expected default background opacity, got %d\n", opacity ); + + color = 0xdeadbeef; + hr = IClosedCaptionPropertiesStatics_get_RegionColor( caption_statics, &color ); + todo_wine ok( hr == S_OK, "get_RegionColor returned %#lx\n", hr ); + todo_wine ok( color == ClosedCaptionColor_Default, "expected default region color, got %d\n", color ); + + hr = IClosedCaptionPropertiesStatics_get_ComputedRegionColor( caption_statics, &computed_color ); + todo_wine ok( hr == E_INVALIDARG, "get_ComputedRegionColor returned %#lx\n", hr ); + hr = IClosedCaptionPropertiesStatics_get_ComputedRegionColor( caption_statics, NULL ); + todo_wine ok( hr == E_INVALIDARG, "get_ComputedRegionColor returned %#lx\n", hr ); + + opacity = 0xdeadbeef; + hr = IClosedCaptionPropertiesStatics_get_RegionOpacity( caption_statics, &opacity ); + todo_wine ok( hr == S_OK, "get_RegionOpacity returned %#lx\n", hr ); + todo_wine ok( opacity == ClosedCaptionOpacity_Default, "expected default region opacity, got %d\n", opacity ); + ref = IClosedCaptionPropertiesStatics_Release( caption_statics ); ok( ref == 2, "got ref %ld.\n", ref ); ref = IActivationFactory_Release( factory );
1
0
0
0
Alexandre Julliard : winecrt0: Call __wine_unix_call through an explicit pointer in the helper macro.
by Alexandre Julliard
25 Nov '22
25 Nov '22
Module: wine Branch: master Commit: 7c0b3a408c75e6760f2e4e9b76e8ba007e95986d URL:
https://gitlab.winehq.org/wine/wine/-/commit/7c0b3a408c75e6760f2e4e9b76e8ba…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Nov 25 10:23:38 2022 +0100 winecrt0: Call __wine_unix_call through an explicit pointer in the helper macro. --- dlls/winecrt0/unix_lib.c | 45 +++++++++++++++------------------------------ dlls/winevulkan/loader.c | 7 ++++--- include/wine/unixlib.h | 3 ++- 3 files changed, 21 insertions(+), 34 deletions(-) diff --git a/dlls/winecrt0/unix_lib.c b/dlls/winecrt0/unix_lib.c index 10be32899ba..1c8e2117dd0 100644 --- a/dlls/winecrt0/unix_lib.c +++ b/dlls/winecrt0/unix_lib.c @@ -27,34 +27,6 @@ #include "winternl.h" #include "wine/unixlib.h" -#ifdef __WINE_PE_BUILD - -static NTSTATUS (WINAPI *p__wine_unix_call)( unixlib_handle_t, unsigned int, void * ); - -static void load_func( void **func, const char *name, void *def ) -{ - if (!*func) - { - HMODULE module = GetModuleHandleW( L"ntdll.dll" ); - void *proc = GetProcAddress( module, name ); - InterlockedExchangePointer( func, proc ? proc : def ); - } -} -#define LOAD_FUNC(name) load_func( (void **)&p ## name, #name, fallback ## name ) - -static NTSTATUS __cdecl fallback__wine_unix_call( unixlib_handle_t handle, unsigned int code, void *args ) -{ - return STATUS_DLL_NOT_FOUND; -} - -NTSTATUS WINAPI __wine_unix_call( unixlib_handle_t handle, unsigned int code, void *args ) -{ - LOAD_FUNC( __wine_unix_call ); - return p__wine_unix_call( handle, code, args ); -} - -#endif /* __WINE_PE_BUILD */ - static inline void *image_base(void) { #ifdef __WINE_PE_BUILD @@ -66,10 +38,23 @@ static inline void *image_base(void) #endif } +static NTSTATUS WINAPI unix_call_fallback( unixlib_handle_t handle, unsigned int code, void *args ) +{ + return STATUS_DLL_NOT_FOUND; +} + unixlib_handle_t __wine_unixlib_handle = 0; +NTSTATUS (WINAPI *__wine_unix_call_ptr)( unixlib_handle_t, unsigned int, void * ) = unix_call_fallback; NTSTATUS WINAPI __wine_init_unix_call(void) { - return NtQueryVirtualMemory( GetCurrentProcess(), image_base(), MemoryWineUnixFuncs, - &__wine_unixlib_handle, sizeof(__wine_unixlib_handle), NULL ); + NTSTATUS status; + HMODULE module = GetModuleHandleW( L"ntdll.dll" ); + void *proc = GetProcAddress( module, "__wine_unix_call" ); + + if (!proc) return STATUS_DLL_NOT_FOUND; + status = NtQueryVirtualMemory( GetCurrentProcess(), image_base(), MemoryWineUnixFuncs, + &__wine_unixlib_handle, sizeof(__wine_unixlib_handle), NULL ); + if (!status) __wine_unix_call_ptr = proc; + return status; } diff --git a/dlls/winevulkan/loader.c b/dlls/winevulkan/loader.c index 6714502e428..f168e824ae8 100644 --- a/dlls/winevulkan/loader.c +++ b/dlls/winevulkan/loader.c @@ -35,7 +35,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(vulkan); DEFINE_DEVPROPKEY(DEVPROPKEY_GPU_LUID, 0x60b193cb, 0x5276, 0x4d0f, 0x96, 0xfc, 0xf1, 0x73, 0xab, 0xad, 0x3e, 0xc6, 2); DEFINE_DEVPROPKEY(WINE_DEVPROPKEY_GPU_VULKAN_UUID, 0x233a9ef3, 0xafc4, 0x4abd, 0xb5, 0x64, 0xc3, 0x2f, 0x21, 0xf1, 0x53, 0x5c, 2); -NTSTATUS (WINAPI *p_vk_direct_unix_call)(unixlib_handle_t handle, unsigned int code, void *args) = __wine_unix_call; +NTSTATUS (WINAPI *p_vk_direct_unix_call)(unixlib_handle_t handle, unsigned int code, void *args) = NULL; static HINSTANCE hinstance; @@ -234,9 +234,10 @@ VkResult WINAPI vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t *supported_ver static BOOL WINAPI wine_vk_init(INIT_ONCE *once, void *param, void **context) { - if (__wine_init_unix_call()) - return FALSE; + NTSTATUS status = __wine_init_unix_call(); + p_vk_direct_unix_call = __wine_unix_call_ptr; + if (status) return FALSE; return !vk_unix_call(unix_init, &p_vk_direct_unix_call); } diff --git a/include/wine/unixlib.h b/include/wine/unixlib.h index fcb25422524..977dabc77f3 100644 --- a/include/wine/unixlib.h +++ b/include/wine/unixlib.h @@ -268,9 +268,10 @@ static inline ULONG ntdll_wcstoul( const WCHAR *s, WCHAR **end, int base ) #else /* WINE_UNIX_LIB */ extern unixlib_handle_t __wine_unixlib_handle DECLSPEC_HIDDEN; +extern NTSTATUS (WINAPI *__wine_unix_call_ptr)( unixlib_handle_t, unsigned int, void * ) DECLSPEC_HIDDEN; extern NTSTATUS WINAPI __wine_init_unix_call(void) DECLSPEC_HIDDEN; -#define WINE_UNIX_CALL(code,args) __wine_unix_call( __wine_unixlib_handle, (code), (args) ) +#define WINE_UNIX_CALL(code,args) __wine_unix_call_ptr( __wine_unixlib_handle, (code), (args) ) #endif /* WINE_UNIX_LIB */
1
0
0
0
Alexandre Julliard : ws2_32: Use the Unix call helpers.
by Alexandre Julliard
25 Nov '22
25 Nov '22
Module: wine Branch: master Commit: 12a129586baf9b8c626602b5f5e1030a35e1312a URL:
https://gitlab.winehq.org/wine/wine/-/commit/12a129586baf9b8c626602b5f5e103…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Nov 25 10:18:08 2022 +0100 ws2_32: Use the Unix call helpers. --- dlls/ws2_32/protocol.c | 4 +--- dlls/ws2_32/socket.c | 3 +-- dlls/ws2_32/ws2_32_private.h | 2 -- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/dlls/ws2_32/protocol.c b/dlls/ws2_32/protocol.c index 6e7e8eee18a..1f840832c7a 100644 --- a/dlls/ws2_32/protocol.c +++ b/dlls/ws2_32/protocol.c @@ -27,9 +27,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(winsock); WINE_DECLARE_DEBUG_CHANNEL(winediag); -unixlib_handle_t ws_unix_handle = 0; - -#define WS_CALL(func, params) __wine_unix_call( ws_unix_handle, ws_unix_ ## func, params ) +#define WS_CALL(func, params) WINE_UNIX_CALL( ws_unix_ ## func, params ) static char *get_fqdn(void) { diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index 115451c3b58..e8a04e2e714 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -582,8 +582,7 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved ) switch (reason) { case DLL_PROCESS_ATTACH: - return !NtQueryVirtualMemory( GetCurrentProcess(), instance, MemoryWineUnixFuncs, - &ws_unix_handle, sizeof(ws_unix_handle), NULL ); + return !__wine_init_unix_call(); case DLL_THREAD_DETACH: free_per_thread_data(); diff --git a/dlls/ws2_32/ws2_32_private.h b/dlls/ws2_32/ws2_32_private.h index b21936a34e1..41d9e512488 100644 --- a/dlls/ws2_32/ws2_32_private.h +++ b/dlls/ws2_32/ws2_32_private.h @@ -145,6 +145,4 @@ enum ws_unix_funcs ws_unix_getnameinfo, }; -extern unixlib_handle_t ws_unix_handle DECLSPEC_HIDDEN; - #endif
1
0
0
0
Alexandre Julliard : winevulkan: Use the Unix call helpers.
by Alexandre Julliard
25 Nov '22
25 Nov '22
Module: wine Branch: master Commit: 006eae345b9f5f49a18da3f05ade9f709811972b URL:
https://gitlab.winehq.org/wine/wine/-/commit/006eae345b9f5f49a18da3f05ade9f…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Nov 25 10:17:27 2022 +0100 winevulkan: Use the Unix call helpers. --- dlls/winevulkan/loader.c | 4 +- dlls/winevulkan/loader_thunks.c | 452 ++++++++++++++++++++-------------------- dlls/winevulkan/make_vulkan | 2 +- dlls/winevulkan/vulkan_loader.h | 7 +- 4 files changed, 233 insertions(+), 232 deletions(-)
1
0
0
0
Alexandre Julliard : winegstreamer: Use the Unix call helpers.
by Alexandre Julliard
25 Nov '22
25 Nov '22
Module: wine Branch: master Commit: 86554e8199a6c2044b5f68eef4f3d44ddf880278 URL:
https://gitlab.winehq.org/wine/wine/-/commit/86554e8199a6c2044b5f68eef4f3d4…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Nov 25 10:19:30 2022 +0100 winegstreamer: Use the Unix call helpers. --- dlls/winegstreamer/main.c | 49 ++++++++++++++++++++++------------------------- 1 file changed, 23 insertions(+), 26 deletions(-) diff --git a/dlls/winegstreamer/main.c b/dlls/winegstreamer/main.c index ea52797712e..fc7344df50c 100644 --- a/dlls/winegstreamer/main.c +++ b/dlls/winegstreamer/main.c @@ -29,8 +29,6 @@ #include "gst_guids.h" #include "wmcodecdsp.h" -static unixlib_handle_t unix_handle; - WINE_DEFAULT_DEBUG_CHANNEL(quartz); DEFINE_GUID(GUID_NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); @@ -75,7 +73,7 @@ struct wg_parser *wg_parser_create(enum wg_parser_type type, bool unlimited_buff TRACE("type %#x, unlimited_buffering %d.\n", type, unlimited_buffering); - if (__wine_unix_call(unix_handle, unix_wg_parser_create, ¶ms)) + if (WINE_UNIX_CALL(unix_wg_parser_create, ¶ms)) return NULL; TRACE("Returning parser %p.\n", params.parser); @@ -87,7 +85,7 @@ void wg_parser_destroy(struct wg_parser *parser) { TRACE("parser %p.\n", parser); - __wine_unix_call(unix_handle, unix_wg_parser_destroy, parser); + WINE_UNIX_CALL(unix_wg_parser_destroy, parser); } HRESULT wg_parser_connect(struct wg_parser *parser, uint64_t file_size) @@ -100,14 +98,14 @@ HRESULT wg_parser_connect(struct wg_parser *parser, uint64_t file_size) TRACE("parser %p, file_size %I64u.\n", parser, file_size); - return __wine_unix_call(unix_handle, unix_wg_parser_connect, ¶ms); + return WINE_UNIX_CALL(unix_wg_parser_connect, ¶ms); } void wg_parser_disconnect(struct wg_parser *parser) { TRACE("parser %p.\n", parser); - __wine_unix_call(unix_handle, unix_wg_parser_disconnect, parser); + WINE_UNIX_CALL(unix_wg_parser_disconnect, parser); } bool wg_parser_get_next_read_offset(struct wg_parser *parser, uint64_t *offset, uint32_t *size) @@ -119,7 +117,7 @@ bool wg_parser_get_next_read_offset(struct wg_parser *parser, uint64_t *offset, TRACE("parser %p, offset %p, size %p.\n", parser, offset, size); - if (__wine_unix_call(unix_handle, unix_wg_parser_get_next_read_offset, ¶ms)) + if (WINE_UNIX_CALL(unix_wg_parser_get_next_read_offset, ¶ms)) return false; *offset = params.offset; *size = params.size; @@ -137,7 +135,7 @@ void wg_parser_push_data(struct wg_parser *parser, const void *data, uint32_t si TRACE("parser %p, data %p, size %u.\n", parser, data, size); - __wine_unix_call(unix_handle, unix_wg_parser_push_data, ¶ms); + WINE_UNIX_CALL(unix_wg_parser_push_data, ¶ms); } uint32_t wg_parser_get_stream_count(struct wg_parser *parser) @@ -149,7 +147,7 @@ uint32_t wg_parser_get_stream_count(struct wg_parser *parser) TRACE("parser %p.\n", parser); - __wine_unix_call(unix_handle, unix_wg_parser_get_stream_count, ¶ms); + WINE_UNIX_CALL(unix_wg_parser_get_stream_count, ¶ms); return params.count; } @@ -163,7 +161,7 @@ struct wg_parser_stream *wg_parser_get_stream(struct wg_parser *parser, uint32_t TRACE("parser %p, index %u.\n", parser, index); - __wine_unix_call(unix_handle, unix_wg_parser_get_stream, ¶ms); + WINE_UNIX_CALL(unix_wg_parser_get_stream, ¶ms); TRACE("Returning stream %p.\n", params.stream); return params.stream; @@ -179,7 +177,7 @@ void wg_parser_stream_get_preferred_format(struct wg_parser_stream *stream, stru TRACE("stream %p, format %p.\n", stream, format); - __wine_unix_call(unix_handle, unix_wg_parser_stream_get_preferred_format, ¶ms); + WINE_UNIX_CALL(unix_wg_parser_stream_get_preferred_format, ¶ms); } void wg_parser_stream_enable(struct wg_parser_stream *stream, const struct wg_format *format) @@ -192,14 +190,14 @@ void wg_parser_stream_enable(struct wg_parser_stream *stream, const struct wg_fo TRACE("stream %p, format %p.\n", stream, format); - __wine_unix_call(unix_handle, unix_wg_parser_stream_enable, ¶ms); + WINE_UNIX_CALL(unix_wg_parser_stream_enable, ¶ms); } void wg_parser_stream_disable(struct wg_parser_stream *stream) { TRACE("stream %p.\n", stream); - __wine_unix_call(unix_handle, unix_wg_parser_stream_disable, stream); + WINE_UNIX_CALL(unix_wg_parser_stream_disable, stream); } bool wg_parser_stream_get_buffer(struct wg_parser *parser, struct wg_parser_stream *stream, @@ -214,7 +212,7 @@ bool wg_parser_stream_get_buffer(struct wg_parser *parser, struct wg_parser_stre TRACE("parser %p, stream %p, buffer %p.\n", parser, stream, buffer); - return !__wine_unix_call(unix_handle, unix_wg_parser_stream_get_buffer, ¶ms); + return !WINE_UNIX_CALL(unix_wg_parser_stream_get_buffer, ¶ms); } bool wg_parser_stream_copy_buffer(struct wg_parser_stream *stream, @@ -230,14 +228,14 @@ bool wg_parser_stream_copy_buffer(struct wg_parser_stream *stream, TRACE("stream %p, data %p, offset %u, size %u.\n", stream, data, offset, size); - return !__wine_unix_call(unix_handle, unix_wg_parser_stream_copy_buffer, ¶ms); + return !WINE_UNIX_CALL(unix_wg_parser_stream_copy_buffer, ¶ms); } void wg_parser_stream_release_buffer(struct wg_parser_stream *stream) { TRACE("stream %p.\n", stream); - __wine_unix_call(unix_handle, unix_wg_parser_stream_release_buffer, stream); + WINE_UNIX_CALL(unix_wg_parser_stream_release_buffer, stream); } void wg_parser_stream_notify_qos(struct wg_parser_stream *stream, @@ -255,7 +253,7 @@ void wg_parser_stream_notify_qos(struct wg_parser_stream *stream, TRACE("stream %p, underflow %d, proportion %.16e, diff %I64d, timestamp %I64u.\n", stream, underflow, proportion, diff, timestamp); - __wine_unix_call(unix_handle, unix_wg_parser_stream_notify_qos, ¶ms); + WINE_UNIX_CALL(unix_wg_parser_stream_notify_qos, ¶ms); } uint64_t wg_parser_stream_get_duration(struct wg_parser_stream *stream) @@ -267,7 +265,7 @@ uint64_t wg_parser_stream_get_duration(struct wg_parser_stream *stream) TRACE("stream %p.\n", stream); - __wine_unix_call(unix_handle, unix_wg_parser_stream_get_duration, ¶ms); + WINE_UNIX_CALL(unix_wg_parser_stream_get_duration, ¶ms); TRACE("Returning duration %I64u.\n", params.duration); return params.duration; @@ -289,7 +287,7 @@ void wg_parser_stream_seek(struct wg_parser_stream *stream, double rate, TRACE("stream %p, rate %.16e, start_pos %I64u, stop_pos %I64u, start_flags %#lx, stop_flags %#lx.\n", stream, rate, start_pos, stop_pos, start_flags, stop_flags); - __wine_unix_call(unix_handle, unix_wg_parser_stream_seek, ¶ms); + WINE_UNIX_CALL(unix_wg_parser_stream_seek, ¶ms); } struct wg_transform *wg_transform_create(const struct wg_format *input_format, @@ -303,7 +301,7 @@ struct wg_transform *wg_transform_create(const struct wg_format *input_format, TRACE("input_format %p, output_format %p.\n", input_format, output_format); - if (__wine_unix_call(unix_handle, unix_wg_transform_create, ¶ms)) + if (WINE_UNIX_CALL(unix_wg_transform_create, ¶ms)) return NULL; TRACE("Returning transform %p.\n", params.transform); @@ -314,7 +312,7 @@ void wg_transform_destroy(struct wg_transform *transform) { TRACE("transform %p.\n", transform); - __wine_unix_call(unix_handle, unix_wg_transform_destroy, transform); + WINE_UNIX_CALL(unix_wg_transform_destroy, transform); } HRESULT wg_transform_push_data(struct wg_transform *transform, struct wg_sample *sample) @@ -328,7 +326,7 @@ HRESULT wg_transform_push_data(struct wg_transform *transform, struct wg_sample TRACE("transform %p, sample %p.\n", transform, sample); - if ((status = __wine_unix_call(unix_handle, unix_wg_transform_push_data, ¶ms))) + if ((status = WINE_UNIX_CALL(unix_wg_transform_push_data, ¶ms))) return HRESULT_FROM_NT(status); return params.result; @@ -347,7 +345,7 @@ HRESULT wg_transform_read_data(struct wg_transform *transform, struct wg_sample TRACE("transform %p, sample %p, format %p.\n", transform, sample, format); - if ((status = __wine_unix_call(unix_handle, unix_wg_transform_read_data, ¶ms))) + if ((status = WINE_UNIX_CALL(unix_wg_transform_read_data, ¶ms))) return HRESULT_FROM_NT(status); return params.result; @@ -363,7 +361,7 @@ bool wg_transform_set_output_format(struct wg_transform *transform, struct wg_fo TRACE("transform %p, format %p.\n", transform, format); - return !__wine_unix_call(unix_handle, unix_wg_transform_set_output_format, ¶ms); + return !WINE_UNIX_CALL(unix_wg_transform_set_output_format, ¶ms); } BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) @@ -371,8 +369,7 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) if (reason == DLL_PROCESS_ATTACH) { DisableThreadLibraryCalls(instance); - NtQueryVirtualMemory(GetCurrentProcess(), instance, MemoryWineUnixFuncs, - &unix_handle, sizeof(unix_handle), NULL); + __wine_init_unix_call(); } return TRUE; }
1
0
0
0
Alexandre Julliard : secur32: Use the Unix call helpers.
by Alexandre Julliard
25 Nov '22
25 Nov '22
Module: wine Branch: master Commit: f82dc3d7c419a0760001a6d994789f62a9160373 URL:
https://gitlab.winehq.org/wine/wine/-/commit/f82dc3d7c419a0760001a6d994789f…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Nov 25 10:16:06 2022 +0100 secur32: Use the Unix call helpers. --- dlls/secur32/schannel.c | 16 ++++------------ dlls/secur32/secur32.c | 3 --- dlls/secur32/secur32_priv.h | 2 -- 3 files changed, 4 insertions(+), 17 deletions(-) diff --git a/dlls/secur32/schannel.c b/dlls/secur32/schannel.c index 98c6f93bc1c..23917626497 100644 --- a/dlls/secur32/schannel.c +++ b/dlls/secur32/schannel.c @@ -40,9 +40,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(secur32); -static unixlib_handle_t gnutls_handle; - -#define GNUTLS_CALL( func, params ) __wine_unix_call( gnutls_handle, unix_ ## func, params ) +#define GNUTLS_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params ) #define SCHAN_INVALID_HANDLE ~0UL @@ -1685,15 +1683,10 @@ void SECUR32_initSchannelSP(void) }; SecureProvider *provider; - if (!gnutls_handle) + if (__wine_init_unix_call() || GNUTLS_CALL( process_attach, NULL )) { - if (NtQueryVirtualMemory( GetCurrentProcess(), hsecur32, MemoryWineUnixFuncs, - &gnutls_handle, sizeof(gnutls_handle), NULL ) || - GNUTLS_CALL( process_attach, NULL )) - { - ERR( "no schannel support, expect problems\n" ); - return; - } + ERR( "no schannel support, expect problems\n" ); + return; } schan_handle_table = malloc(64 * sizeof(*schan_handle_table)); @@ -1751,5 +1744,4 @@ void SECUR32_deinitSchannelSP(void) } free(schan_handle_table); GNUTLS_CALL( process_detach, NULL ); - gnutls_handle = 0; } diff --git a/dlls/secur32/secur32.c b/dlls/secur32/secur32.c index 4875ce85651..d703757bae7 100644 --- a/dlls/secur32/secur32.c +++ b/dlls/secur32/secur32.c @@ -40,8 +40,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(secur32); -HINSTANCE hsecur32; - /** * Type definitions */ @@ -1183,7 +1181,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved) switch (reason) { case DLL_PROCESS_ATTACH: - hsecur32 = hinstDLL; DisableThreadLibraryCalls(hinstDLL); SECUR32_initializeProviders(); break; diff --git a/dlls/secur32/secur32_priv.h b/dlls/secur32/secur32_priv.h index c43b1f446c4..258454560fe 100644 --- a/dlls/secur32/secur32_priv.h +++ b/dlls/secur32/secur32_priv.h @@ -26,8 +26,6 @@ #include "schannel.h" #include "wine/list.h" -extern HINSTANCE hsecur32 DECLSPEC_HIDDEN; - typedef struct _SecureProvider { struct list entry;
1
0
0
0
Alexandre Julliard : opengl32: Use the Unix call helpers.
by Alexandre Julliard
25 Nov '22
25 Nov '22
Module: wine Branch: master Commit: e9c065e590133d5c19365c77b48eda99b7be367e URL:
https://gitlab.winehq.org/wine/wine/-/commit/e9c065e590133d5c19365c77b48eda…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Nov 25 10:14:36 2022 +0100 opengl32: Use the Unix call helpers. --- dlls/opengl32/make_opengl | 3 +-- dlls/opengl32/unixlib.h | 3 +-- dlls/opengl32/wgl.c | 12 ++---------- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/dlls/opengl32/make_opengl b/dlls/opengl32/make_opengl index 5d995495abd..5564b4b8526 100755 --- a/dlls/opengl32/make_opengl +++ b/dlls/opengl32/make_opengl @@ -1054,8 +1054,7 @@ print OUT " GLsizei length;\n"; print OUT " const GLchar *message;\n"; print OUT "};\n\n"; -print OUT "extern unixlib_handle_t unixlib_handle DECLSPEC_HIDDEN;\n"; -print OUT "#define UNIX_CALL( func, params ) __wine_unix_call( unixlib_handle, unix_ ## func, params )\n\n"; +print OUT "#define UNIX_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )\n\n"; print OUT "#endif /* __WINE_OPENGL32_UNIXLIB_H */\n"; close OUT; diff --git a/dlls/opengl32/unixlib.h b/dlls/opengl32/unixlib.h index e7f21383f86..59f75b93c54 100644 --- a/dlls/opengl32/unixlib.h +++ b/dlls/opengl32/unixlib.h @@ -25351,7 +25351,6 @@ struct wine_gl_debug_message_params const GLchar *message; }; -extern unixlib_handle_t unixlib_handle DECLSPEC_HIDDEN; -#define UNIX_CALL( func, params ) __wine_unix_call( unixlib_handle, unix_ ## func, params ) +#define UNIX_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params ) #endif /* __WINE_OPENGL32_UNIXLIB_H */ diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index 27efa6df745..1e7767374d5 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -39,8 +39,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(opengl); WINE_DECLARE_DEBUG_CHANNEL(fps); -unixlib_handle_t unixlib_handle = 0; - static const MAT2 identity = { {0,1},{0,0},{0,0},{0,1} }; #ifndef _WIN64 @@ -1257,8 +1255,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) switch(reason) { case DLL_PROCESS_ATTACH: - if ((status = NtQueryVirtualMemory( GetCurrentProcess(), hinst, MemoryWineUnixFuncs, - &unixlib_handle, sizeof(unixlib_handle), NULL ))) + if ((status = __wine_init_unix_call())) { ERR( "Failed to load unixlib, status %#lx\n", status ); return FALSE; @@ -1276,12 +1273,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) break; case DLL_PROCESS_DETACH: - if (!unixlib_handle) return TRUE; - if ((status = UNIX_CALL( process_detach, NULL ))) - { - WARN( "Failed to detach opengl32 unixlib, status %#lx\n", status ); - return FALSE; - } + UNIX_CALL( process_detach, NULL ); #ifndef _WIN64 cleanup_wow64_strings(); #endif
1
0
0
0
Alexandre Julliard : opencl: Use the Unix call helpers.
by Alexandre Julliard
25 Nov '22
25 Nov '22
Module: wine Branch: master Commit: 3b50ca0ff8794d5b1eb9d0d8591234f927461463 URL:
https://gitlab.winehq.org/wine/wine/-/commit/3b50ca0ff8794d5b1eb9d0d8591234…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Nov 25 10:14:03 2022 +0100 opencl: Use the Unix call helpers. --- dlls/opencl/opencl_private.h | 4 +--- dlls/opencl/pe_wrappers.c | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/dlls/opencl/opencl_private.h b/dlls/opencl/opencl_private.h index 4c582093b6d..28968296221 100644 --- a/dlls/opencl/opencl_private.h +++ b/dlls/opencl/opencl_private.h @@ -33,8 +33,6 @@ BOOL extension_is_supported( const char *name, size_t len ) DECLSPEC_HIDDEN; -extern unixlib_handle_t opencl_handle DECLSPEC_HIDDEN; - -#define OPENCL_CALL( func, params ) __wine_unix_call( opencl_handle, unix_ ## func, params ) +#define OPENCL_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params ) #endif diff --git a/dlls/opencl/pe_wrappers.c b/dlls/opencl/pe_wrappers.c index 29ae1afaaff..3b6846009c1 100644 --- a/dlls/opencl/pe_wrappers.c +++ b/dlls/opencl/pe_wrappers.c @@ -25,8 +25,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(opencl); -unixlib_handle_t opencl_handle = 0; - static cl_int filter_extensions( const char *unix_exts, SIZE_T size, char *win_exts, size_t *ret_size ) { char *p = win_exts; @@ -284,8 +282,7 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved ) if (reason == DLL_PROCESS_ATTACH) { DisableThreadLibraryCalls( instance ); - return !NtQueryVirtualMemory( GetCurrentProcess(), instance, MemoryWineUnixFuncs, - &opencl_handle, sizeof(opencl_handle), NULL ); + return !__wine_init_unix_call(); } return TRUE; }
1
0
0
0
Alexandre Julliard : odbc32: Use the Unix call helpers.
by Alexandre Julliard
25 Nov '22
25 Nov '22
Module: wine Branch: master Commit: 7f808e564d712c111764ec0a43d8e74395c6e3c7 URL:
https://gitlab.winehq.org/wine/wine/-/commit/7f808e564d712c111764ec0a43d8e7…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Nov 25 10:13:24 2022 +0100 odbc32: Use the Unix call helpers. --- dlls/odbc32/proxyodbc.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/dlls/odbc32/proxyodbc.c b/dlls/odbc32/proxyodbc.c index 714819993ee..679f3d7380e 100644 --- a/dlls/odbc32/proxyodbc.c +++ b/dlls/odbc32/proxyodbc.c @@ -45,9 +45,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(odbc); WINE_DECLARE_DEBUG_CHANNEL(winediag); -static unixlib_handle_t odbc_handle; - -#define ODBC_CALL( func, params ) __wine_unix_call( odbc_handle, unix_ ## func, params ) +#define ODBC_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params ) /*********************************************************************** * ODBC_ReplicateODBCInstToRegistry @@ -2641,18 +2639,16 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved) switch (reason) { case DLL_PROCESS_ATTACH: - DisableThreadLibraryCalls(hinstDLL); - if (!NtQueryVirtualMemory( GetCurrentProcess(), hinstDLL, MemoryWineUnixFuncs, - &odbc_handle, sizeof(odbc_handle), NULL ) && - !__wine_unix_call( odbc_handle, process_attach, NULL)) + DisableThreadLibraryCalls(hinstDLL); + if (!__wine_init_unix_call() && !WINE_UNIX_CALL( process_attach, NULL )) { ODBC_ReplicateToRegistry(); } - break; + break; case DLL_PROCESS_DETACH: - if (reserved) break; - __wine_unix_call( odbc_handle, process_detach, NULL ); + if (reserved) break; + WINE_UNIX_CALL( process_detach, NULL ); } return TRUE;
1
0
0
0
← Newer
1
...
17
18
19
20
21
22
23
...
118
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
Results per page:
10
25
50
100
200