Commit a62d3ab8 authored by Alexandre Julliard's avatar Alexandre Julliard

dnsapi: Use the Unix call helpers.

parent 81493d0f
......@@ -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:
......
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