1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

opencl: Use the Unix call helpers.

This commit is contained in:
Alexandre Julliard 2022-11-25 10:14:03 +01:00
parent 7f808e564d
commit 3b50ca0ff8
2 changed files with 2 additions and 7 deletions

View File

@ -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

View File

@ -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;
}