changeset 3906:eb1d58c2d6af

[gaim-migrate @ 4059] Winsock init and cleanup now done in win32dep.c committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Tue, 05 Nov 2002 22:59:53 +0000
parents 3e508dd31b76
children 41e7544a9c67
files src/core.c
diffstat 1 files changed, 0 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- 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
 }