Fix string length return from HttpQueryInfoA.
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 608b41e..07bf934 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c
@@ -1164,6 +1164,12 @@ lpBuffer, *lpdwBufferLength, NULL, NULL ); *lpdwBufferLength = len * sizeof(WCHAR); } + else + /* since the strings being returned from HttpQueryInfoW should be + * only ASCII characters, it is reasonable to assume that all of + * the Unicode characters can be reduced to a single byte */ + *lpdwBufferLength = len / sizeof(WCHAR); + HeapFree(GetProcessHeap(), 0, bufferW ); return result;