Commit 3b50ca0f authored by Alexandre Julliard's avatar Alexandre Julliard

opencl: Use the Unix call helpers.

parent 7f808e56
......@@ -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
......@@ -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;
}
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