winhttp: Always pass a ULONG variable to ioctlsocket.

This commit is contained in:
Alexandre Julliard 2013-03-06 13:32:44 +01:00
parent 51947acd5a
commit 847a29375c
1 changed files with 4 additions and 2 deletions

View File

@ -331,7 +331,8 @@ BOOL netconn_close( netconn_t *conn )
BOOL netconn_connect( netconn_t *conn, const struct sockaddr *sockaddr, unsigned int addr_len, int timeout ) BOOL netconn_connect( netconn_t *conn, const struct sockaddr *sockaddr, unsigned int addr_len, int timeout )
{ {
BOOL ret = FALSE; BOOL ret = FALSE;
int res = 0, state; int res = 0;
ULONG state;
if (timeout > 0) if (timeout > 0)
{ {
@ -734,7 +735,8 @@ BOOL netconn_recv( netconn_t *conn, void *buf, size_t len, int flags, int *recvd
BOOL netconn_query_data_available( netconn_t *conn, DWORD *available ) BOOL netconn_query_data_available( netconn_t *conn, DWORD *available )
{ {
#ifdef FIONREAD #ifdef FIONREAD
int ret, unread; int ret;
ULONG unread;
#endif #endif
*available = 0; *available = 0;
if (!netconn_connected( conn )) return FALSE; if (!netconn_connected( conn )) return FALSE;