From a298415bbe444751a1c668dda0873a47274a8406 Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Mon, 17 May 2010 11:54:29 +0200 Subject: [PATCH] wininet: Fix dwStatusInfoLength value in INTERNET_SendCallback. --- dlls/wininet/utility.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wininet/utility.c b/dlls/wininet/utility.c index 66fbecdd653..0639f40385e 100644 --- a/dlls/wininet/utility.c +++ b/dlls/wininet/utility.c @@ -307,6 +307,7 @@ VOID INTERNET_SendCallback(object_header_t *hdr, DWORD_PTR dwContext, case INTERNET_STATUS_CONNECTING_TO_SERVER: case INTERNET_STATUS_CONNECTED_TO_SERVER: lpvNewInfo = heap_strdupAtoW(lpvStatusInfo); + dwStatusInfoLength *= sizeof(WCHAR); break; case INTERNET_STATUS_RESOLVING_NAME: case INTERNET_STATUS_REDIRECT: @@ -325,6 +326,7 @@ VOID INTERNET_SendCallback(object_header_t *hdr, DWORD_PTR dwContext, case INTERNET_STATUS_RESOLVING_NAME: case INTERNET_STATUS_REDIRECT: lpvNewInfo = heap_strdupWtoA(lpvStatusInfo); + dwStatusInfoLength /= sizeof(WCHAR); break; } }