Commit c46d25b1 authored by Alexandre Julliard's avatar Alexandre Julliard

netapi32: Use the Unix call helpers.

parent 6674e6d7
......@@ -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();
......
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