1
0
mirror of https://github.com/wine-mirror/wine synced 2024-06-29 06:14:34 +00:00

cryptnet: Do not use InternetCombineUrlW() in build_request_url().

This commit is contained in:
Paul Gofman 2024-04-24 19:43:37 -06:00 committed by Alexandre Julliard
parent 7300b40b47
commit 798f158a60

View File

@ -1869,15 +1869,16 @@ static WCHAR *build_request_url(const WCHAR *base_url, const BYTE *data, DWORD d
DWORD len = 0;
if (!(path = build_request_path(data, data_size))) return NULL;
InternetCombineUrlW(base_url, path, NULL, &len, 0);
len = (wcslen(base_url) + wcslen(path) + 1) * sizeof(WCHAR);
if (!(ret = malloc(len * sizeof(WCHAR))))
{
free(path);
return NULL;
}
InternetCombineUrlW(base_url, path, ret, &len, 0);
wcscpy(ret, base_url);
wcscat(ret, path);
free(path);
TRACE("-> %s.\n", debugstr_w(ret));
return ret;
}