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

sane.ds: Use the Unix call helpers.

This commit is contained in:
Alexandre Julliard 2022-11-28 11:41:28 +01:00
parent 15e044905b
commit 3e5bf70341
2 changed files with 2 additions and 6 deletions

View File

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

View File

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