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

netapi32: Use the Unix call helpers.

This commit is contained in:
Alexandre Julliard 2022-11-28 11:40:53 +01:00
parent 6674e6d713
commit c46d25b135

View File

@ -55,9 +55,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(netapi32);
DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
static unixlib_handle_t samba_handle;
#define SAMBA_CALL(func, args) __wine_unix_call( samba_handle, unix_ ## func, args )
#define SAMBA_CALL(func, args) WINE_UNIX_CALL( unix_ ## func, args )
static INIT_ONCE init_once = INIT_ONCE_STATIC_INIT;
@ -69,7 +67,7 @@ static BOOL WINAPI load_samba( INIT_ONCE *once, void *param, void **context )
static BOOL samba_init(void)
{
return samba_handle && InitOnceExecuteOnce( &init_once, load_samba, NULL, NULL );
return __wine_unixlib_handle && InitOnceExecuteOnce( &init_once, load_samba, NULL, NULL );
}
/************************************************************
@ -96,8 +94,7 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
switch (fdwReason) {
case DLL_PROCESS_ATTACH:
NtQueryVirtualMemory( GetCurrentProcess(), hinstDLL, MemoryWineUnixFuncs,
&samba_handle, sizeof(samba_handle), NULL );
__wine_init_unix_call();
DisableThreadLibraryCalls(hinstDLL);
NetBIOSInit();
NetBTInit();