mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
netapi32: Use the Unix call helpers.
This commit is contained in:
parent
6674e6d713
commit
c46d25b135
|
@ -55,9 +55,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(netapi32);
|
||||||
|
|
||||||
DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0);
|
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( unix_ ## func, args )
|
||||||
|
|
||||||
#define SAMBA_CALL(func, args) __wine_unix_call( samba_handle, unix_ ## func, args )
|
|
||||||
|
|
||||||
static INIT_ONCE init_once = INIT_ONCE_STATIC_INIT;
|
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)
|
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) {
|
switch (fdwReason) {
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
NtQueryVirtualMemory( GetCurrentProcess(), hinstDLL, MemoryWineUnixFuncs,
|
__wine_init_unix_call();
|
||||||
&samba_handle, sizeof(samba_handle), NULL );
|
|
||||||
DisableThreadLibraryCalls(hinstDLL);
|
DisableThreadLibraryCalls(hinstDLL);
|
||||||
NetBIOSInit();
|
NetBIOSInit();
|
||||||
NetBTInit();
|
NetBTInit();
|
||||||
|
|
Loading…
Reference in a new issue