mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
cryptnet: Do not use InternetCombineUrlW() in build_request_url().
This commit is contained in:
parent
7300b40b47
commit
798f158a60
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue