From 5b72526052c333744c9d08a10b240117f6c88fb2 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 18 May 2009 03:05:39 +0200 Subject: [PATCH] urlmon: Added GetBindString(BINDSTRING_URL) implementation. --- dlls/urlmon/binding.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dlls/urlmon/binding.c b/dlls/urlmon/binding.c index 3ff4683e053..2c6af731903 100644 --- a/dlls/urlmon/binding.c +++ b/dlls/urlmon/binding.c @@ -1172,6 +1172,17 @@ static HRESULT WINAPI InternetBindInfo_GetBindString(IInternetBindInfo *iface, return hres; } + case BINDSTRING_URL: { + DWORD size = (strlenW(This->url)+1) * sizeof(WCHAR); + + if(!ppwzStr || !pcElFetched) + return E_INVALIDARG; + + *ppwzStr = CoTaskMemAlloc(size); + memcpy(*ppwzStr, This->url, size); + *pcElFetched = 1; + return S_OK; + } } FIXME("not supported string type %d\n", ulStringType);