[PATCH 1/4] opencl: Do not return an NTSTATUS from DllMain.
Alexandre Julliard
julliard at winehq.org
Sat Mar 20 15:55:33 CDT 2021
Zebediah Figura <z.figura12 at gmail.com> writes:
> Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
> ---
> dlls/opencl/pe_wrappers.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/dlls/opencl/pe_wrappers.c b/dlls/opencl/pe_wrappers.c
> index 35c78181580..56ff204c900 100644
> --- a/dlls/opencl/pe_wrappers.c
> +++ b/dlls/opencl/pe_wrappers.c
> @@ -132,7 +132,8 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved )
> if (reason == DLL_PROCESS_ATTACH)
> {
> DisableThreadLibraryCalls( instance );
> - return __wine_init_unix_lib( instance, reason, NULL, &opencl_funcs );
> + if (__wine_init_unix_lib( instance, reason, NULL, &opencl_funcs ))
> + ERR( "failed to load libOpenCL\n" );
Sorry for screwing this up, but I still think the dll should fail to
load without the Unix library, that's how it behaved previously.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list