Commit 7dcdfd7b authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

wininet: Fix buffer size calculation in InternetQueryOption(INTERNET_OPTION_PER_CONNECTION_OPTION).

parent f54acf3d
......@@ -2620,7 +2620,7 @@ static char *copy_optionA(WCHAR *value)
if (!value)
return NULL;
len = wcslen(value) * 3 + 1;
len = WideCharToMultiByte(CP_ACP, 0, value, -1, NULL, 0, NULL, NULL);
if (!(tmp = HeapAlloc(GetProcessHeap(), 0, len)))
return NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment