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