mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
dnsapi: Use the Unix call helpers.
This commit is contained in:
parent
81493d0f8c
commit
a62d3ab841
|
@ -129,6 +129,4 @@ enum unix_funcs
|
|||
unix_query,
|
||||
};
|
||||
|
||||
extern unixlib_handle_t resolv_handle;
|
||||
|
||||
#define RESOLV_CALL( func, params ) __wine_unix_call( resolv_handle, unix_ ## func, params )
|
||||
#define RESOLV_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(dnsapi);
|
||||
|
||||
unixlib_handle_t resolv_handle = 0;
|
||||
|
||||
BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
|
||||
{
|
||||
TRACE( "(%p, %lu, %p)\n", hinst, reason, reserved );
|
||||
|
@ -42,8 +40,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
|
|||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
DisableThreadLibraryCalls( hinst );
|
||||
if (NtQueryVirtualMemory( GetCurrentProcess(), hinst, MemoryWineUnixFuncs,
|
||||
&resolv_handle, sizeof(resolv_handle), NULL ))
|
||||
if (__wine_init_unix_call())
|
||||
ERR( "No libresolv support, expect problems\n" );
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
|
|
Loading…
Reference in a new issue