Commit 12a12958 authored by Alexandre Julliard's avatar Alexandre Julliard

ws2_32: Use the Unix call helpers.

parent 006eae34
......@@ -27,9 +27,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(winsock);
WINE_DECLARE_DEBUG_CHANNEL(winediag);
unixlib_handle_t ws_unix_handle = 0;
#define WS_CALL(func, params) __wine_unix_call( ws_unix_handle, ws_unix_ ## func, params )
#define WS_CALL(func, params) WINE_UNIX_CALL( ws_unix_ ## func, params )
static char *get_fqdn(void)
{
......
......@@ -582,8 +582,7 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved )
switch (reason)
{
case DLL_PROCESS_ATTACH:
return !NtQueryVirtualMemory( GetCurrentProcess(), instance, MemoryWineUnixFuncs,
&ws_unix_handle, sizeof(ws_unix_handle), NULL );
return !__wine_init_unix_call();
case DLL_THREAD_DETACH:
free_per_thread_data();
......
......@@ -145,6 +145,4 @@ enum ws_unix_funcs
ws_unix_getnameinfo,
};
extern unixlib_handle_t ws_unix_handle DECLSPEC_HIDDEN;
#endif
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