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

sane.ds: Use the Unix call helpers.

parent 15e04490
......@@ -30,7 +30,6 @@ struct tagActiveDS activeDS;
DSMENTRYPROC SANE_dsmentry;
HINSTANCE SANE_instance;
unixlib_handle_t sane_handle = 0;
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
......@@ -41,8 +40,7 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
case DLL_PROCESS_ATTACH: {
SANE_instance = hinstDLL;
DisableThreadLibraryCalls(hinstDLL);
if (NtQueryVirtualMemory( GetCurrentProcess(), hinstDLL, MemoryWineUnixFuncs,
&sane_handle, sizeof(sane_handle), NULL )) return FALSE;
if (__wine_init_unix_call()) return FALSE;
SANE_CALL( process_attach, NULL );
break;
}
......
......@@ -97,6 +97,4 @@ enum sane_funcs
unix_option_find_descriptor,
};
extern unixlib_handle_t sane_handle DECLSPEC_HIDDEN;
#define SANE_CALL( func, params ) __wine_unix_call( sane_handle, unix_ ## func, params )
#define SANE_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
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