1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

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

This commit is contained in:
Piotr Caban 2024-02-15 13:49:41 +01:00 committed by Alexandre Julliard
parent f54acf3de0
commit 7dcdfd7bf2

View file

@ -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;