summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mir_app/src/netlib_http.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_app/src/netlib_http.cpp b/src/mir_app/src/netlib_http.cpp
index 96c70867f5..27f7d17687 100644
--- a/src/mir_app/src/netlib_http.cpp
+++ b/src/mir_app/src/netlib_http.cpp
@@ -95,12 +95,12 @@ EXTERN_C MIR_APP_DLL(bool) Netlib_FreeHttpRequest(MHttpResponse *nlhr)
/////////////////////////////////////////////////////////////////////////////////////////
-static int RecvWithTimeoutTime(NetlibConnection *nlc, int dwTimeoutTime, char *buf, int len, int flags)
+static int RecvWithTimeoutTime(NetlibConnection *nlc, uint32_t dwTimeoutTime, char *buf, int len, int flags)
{
if (!nlc->foreBuf.isEmpty() || Netlib_SslPending(nlc->hSsl))
return Netlib_Recv(nlc, buf, len, flags);
- int dwTimeNow;
+ uint32_t dwTimeNow;
while ((dwTimeNow = GetTickCount()) < dwTimeoutTime) {
int dwDeltaTime = min(dwTimeoutTime - dwTimeNow, 1000);
int res = WaitUntilReadable(nlc->s, dwDeltaTime);