wininet: Fix buffer size calculation in InternetQueryOption(INTERNET_OPTION_PER_CONNECTION_OPTION).
This commit is contained in:
parent
f54acf3de0
commit
7dcdfd7bf2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue