Commit 798f158a authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

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

parent 7300b40b
...@@ -1869,15 +1869,16 @@ static WCHAR *build_request_url(const WCHAR *base_url, const BYTE *data, DWORD d ...@@ -1869,15 +1869,16 @@ static WCHAR *build_request_url(const WCHAR *base_url, const BYTE *data, DWORD d
DWORD len = 0; DWORD len = 0;
if (!(path = build_request_path(data, data_size))) return NULL; if (!(path = build_request_path(data, data_size))) return NULL;
len = (wcslen(base_url) + wcslen(path) + 1) * sizeof(WCHAR);
InternetCombineUrlW(base_url, path, NULL, &len, 0);
if (!(ret = malloc(len * sizeof(WCHAR)))) if (!(ret = malloc(len * sizeof(WCHAR))))
{ {
free(path); free(path);
return NULL; return NULL;
} }
InternetCombineUrlW(base_url, path, ret, &len, 0); wcscpy(ret, base_url);
wcscat(ret, path);
free(path); free(path);
TRACE("-> %s.\n", debugstr_w(ret));
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment