# HG changeset patch # User Herman Bloggs # Date 1036537193 0 # Node ID eb1d58c2d6afa8d4dbd3e7816c5feb0ecf636ace # Parent 3e508dd31b7621fbd13a70b3ee556672cc0b5d8a [gaim-migrate @ 4059] Winsock init and cleanup now done in win32dep.c committer: Tailor Script diff -r 3e508dd31b76 -r eb1d58c2d6af src/core.c --- a/src/core.c Tue Nov 05 22:34:05 2002 +0000 +++ b/src/core.c Tue Nov 05 22:59:53 2002 +0000 @@ -485,31 +485,6 @@ g_io_channel_unref(channel); #endif -#ifdef _WIN32 - WORD wVersionRequested; - WSADATA wsaData; - int err; - - wVersionRequested = MAKEWORD( 2, 2 ); - - err = WSAStartup( wVersionRequested, &wsaData ); - if ( err != 0 ) { - return 1; - } - - /* Confirm that the winsock DLL supports 2.2 */ - /* Note that if the DLL supports versions greater than - 2.2 in addition to 2.2, it will still return 2.2 in - wVersion since that is the version we requested. */ - - if ( LOBYTE( wsaData.wVersion ) != 2 || - HIBYTE( wsaData.wVersion ) != 2 ) { - debug_printf("Could not find a usable WinSock DLL. Oh well.\n"); - WSACleanup( ); - return 1; - } -#endif /* _WIN32 */ - /* loop = g_main_new(TRUE); g_main_run(loop); @@ -526,7 +501,5 @@ sprintf(buf, "%s" G_DIR_SEPARATOR_S "gaim_%s.%d", g_get_tmp_dir(), g_get_user_name(), gaim_session); unlink(buf); debug_printf("Removed core\n"); -#else - WSACleanup( ); #endif }