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

dnsapi: Use the Unix call helpers.

This commit is contained in:
Alexandre Julliard 2022-11-28 11:40:07 +01:00
parent 81493d0f8c
commit a62d3ab841
2 changed files with 2 additions and 7 deletions

View File

@ -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 )

View File

@ -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: