mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
sane.ds: Use the Unix call helpers.
This commit is contained in:
parent
15e044905b
commit
3e5bf70341
|
@ -30,7 +30,6 @@ struct tagActiveDS activeDS;
|
||||||
|
|
||||||
DSMENTRYPROC SANE_dsmentry;
|
DSMENTRYPROC SANE_dsmentry;
|
||||||
HINSTANCE SANE_instance;
|
HINSTANCE SANE_instance;
|
||||||
unixlib_handle_t sane_handle = 0;
|
|
||||||
|
|
||||||
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
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: {
|
case DLL_PROCESS_ATTACH: {
|
||||||
SANE_instance = hinstDLL;
|
SANE_instance = hinstDLL;
|
||||||
DisableThreadLibraryCalls(hinstDLL);
|
DisableThreadLibraryCalls(hinstDLL);
|
||||||
if (NtQueryVirtualMemory( GetCurrentProcess(), hinstDLL, MemoryWineUnixFuncs,
|
if (__wine_init_unix_call()) return FALSE;
|
||||||
&sane_handle, sizeof(sane_handle), NULL )) return FALSE;
|
|
||||||
SANE_CALL( process_attach, NULL );
|
SANE_CALL( process_attach, NULL );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,6 +97,4 @@ enum sane_funcs
|
||||||
unix_option_find_descriptor,
|
unix_option_find_descriptor,
|
||||||
};
|
};
|
||||||
|
|
||||||
extern unixlib_handle_t sane_handle DECLSPEC_HIDDEN;
|
#define SANE_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
|
||||||
|
|
||||||
#define SANE_CALL( func, params ) __wine_unix_call( sane_handle, unix_ ## func, params )
|
|
||||||
|
|
Loading…
Reference in a new issue