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

ws2_32: Use the Unix call helpers.

This commit is contained in:
Alexandre Julliard 2022-11-25 10:18:08 +01:00
parent 006eae345b
commit 12a129586b
3 changed files with 2 additions and 7 deletions

View File

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

View File

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

View File

@ -145,6 +145,4 @@ enum ws_unix_funcs
ws_unix_getnameinfo,
};
extern unixlib_handle_t ws_unix_handle DECLSPEC_HIDDEN;
#endif