1 --- wine-1.3.4/dlls/wininet/internet.h 2010-10-01 14:46:44.000000000 -0400
2 +++ dll/win32/wininet/internet.h 2010-10-09 15:34:13.000000000 -0400
4 LPCVOID NETCON_GetCert(WININET_NETCONNECTION *connection);
5 int NETCON_GetCipherStrength(WININET_NETCONNECTION *connection);
6 DWORD NETCON_set_timeout(WININET_NETCONNECTION *connection, BOOL send, int value);
7 -int sock_get_error(int);
8 +#define sock_get_error(x) WSAGetLastError()
10 extern void URLCacheContainers_CreateDefaults(void);
11 extern void URLCacheContainers_DeleteAll(void);
12 --- wine-1.3.4/dlls/wininet/http.c 2010-10-01 14:46:44.000000000 -0400
13 +++ dll/win32/wininet/http.c 2010-10-09 15:28:29.000000000 -0400
15 #include "wine/exception.h"
16 #include "wine/unicode.h"
18 +#include "inet_ntop.c"
20 WINE_DEFAULT_DEBUG_CHANNEL(wininet);
22 static const WCHAR g_szHttp1_0[] = {'H','T','T','P','/','1','.','0',0};
23 --- wine-1.3.4/dlls/wininet/netconnection.c 2010-10-01 14:46:44.000000000 -0400
24 +++ dll/win32/wininet/netconnection.c 2010-10-09 15:33:53.000000000 -0400
30 /* translate a unix error code into a winsock one */
31 int sock_get_error( int err )
39 /******************************************************************************
41 --- wine-1.3.4/dlls/wininet/internet.c 2010-10-01 14:46:44.000000000 -0400
42 +++ dll/win32/wininet/internet.c 2010-10-09 15:33:04.000000000 -0400
43 @@ -3569,19 +3569,22 @@
45 LPSTR INTERNET_GetNextLine(INT nSocket, LPDWORD dwLen)
50 BOOL bSuccess = FALSE;
52 LPSTR lpszBuffer = INTERNET_GetResponseBuffer();
57 - pfd.events = POLLIN;
59 + FD_SET(nSocket,&infd);
60 + tv.tv_sec = RESPONSE_TIMEOUT;
63 while (nRecv < MAX_REPLY_LEN)
65 - if (poll(&pfd,1, RESPONSE_TIMEOUT * 1000) > 0)
66 + if (select(0, &infd, NULL, NULL, &tv) > 0)
68 if (recv(nSocket, &lpszBuffer[nRecv], 1, 0) <= 0)