Index: dll/win32/winhttp/session.c =================================================================== --- dll/win32/winhttp/session.c (revision 56842) +++ dll/win32/winhttp/session.c (working copy) @@ -91,9 +91,6 @@ heap_free( session->proxy_username ); heap_free( session->proxy_password ); heap_free( session ); -#ifdef __REACTOS__ - WSACleanup(); -#endif } static BOOL session_query_option( object_header_t *hdr, DWORD option, LPVOID buffer, LPDWORD buflen ) @@ -204,7 +201,7 @@ HINTERNET handle = NULL; #ifdef __REACTOS__ WSADATA wsaData; - int error = WSAStartup(MAKEWORD(2, 2), &wsaData); + int error = WSAStartup(MAKEWORD(1, 1), &wsaData); if (error) ERR("WSAStartup failed: %d\n", error); #endif Index: dll/win32/wininet/internet.c =================================================================== --- dll/win32/wininet/internet.c (revision 56842) +++ dll/win32/wininet/internet.c (working copy) @@ -747,9 +747,6 @@ heap_free(lpwai->proxyBypass); heap_free(lpwai->proxyUsername); heap_free(lpwai->proxyPassword); -#ifdef __REACTOS__ - WSACleanup(); -#endif } static DWORD APPINFO_QueryOption(object_header_t *hdr, DWORD option, void *buffer, DWORD *size, BOOL unicode) Index: modules/rostests/apitests/winhttp/WinHttpOpen.c =================================================================== --- modules/rostests/apitests/winhttp/WinHttpOpen.c (revision 56828) +++ modules/rostests/apitests/winhttp/WinHttpOpen.c (working copy) @@ -119,6 +119,6 @@ FreeLibrary(ModuleHandle); ok(IsWinsockLoaded(), "Winsock unloaded after winhttp unload\n"); - trace("Winsock %sinitialized after winhttp unload (should be uninitialized in 2003, still initialized in 7)\n", + ok(0, "Winsock %sinitialized after winhttp unload (should be uninitialized in 2003, still initialized in 7)\n", IsWinsockInitialized() ? "" : "un"); } Index: modules/rostests/apitests/wininet/InternetOpen.c =================================================================== --- modules/rostests/apitests/wininet/InternetOpen.c (revision 56828) +++ modules/rostests/apitests/wininet/InternetOpen.c (working copy) @@ -109,6 +109,6 @@ FreeLibrary(ModuleHandle); ok(IsWinsockLoaded(), "Winsock unloaded after wininet unload\n"); - trace("Winsock %sinitialized after wininet unload (should be uninitialized in 2003, still initialized in 7)\n", + ok(0, "Winsock %sinitialized after wininet unload (should be uninitialized in 2003, still initialized in 7)\n", IsWinsockInitialized() ? "" : "un"); }