mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
ws2_32: Use the Unix call helpers.
This commit is contained in:
parent
006eae345b
commit
12a129586b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue