shdocvw: Implement SHRestricted2A.

This commit is contained in:
Detlef Riekenberg 2010-04-18 15:31:05 +02:00 committed by Alexandre Julliard
parent 80878d00da
commit 79d7ca6037
2 changed files with 22 additions and 1 deletions

View File

@ -40,7 +40,7 @@
151 stdcall -noname URLSubRegQueryA(str str long ptr long long)
152 stub -noname CShellUIHelper_CreateInstance2
153 stub -noname IsURLChild
158 stub -noname SHRestricted2A
158 stdcall -noname SHRestricted2A(long str long)
159 stdcall -noname SHRestricted2W(long wstr long)
160 stub -noname SHIsRestricted2W
161 stub @ # CSearchAssistantOC::OnDraw

View File

@ -440,3 +440,24 @@ DWORD WINAPI SHRestricted2W(DWORD res, LPCWSTR url, DWORD reserved)
FIXME("(%d %s %d) stub\n", res, debugstr_w(url), reserved);
return 0;
}
/******************************************************************
* SHRestricted2A (SHDOCVW.158)
*
* See SHRestricted2W
*/
DWORD WINAPI SHRestricted2A(DWORD restriction, LPCSTR url, DWORD reserved)
{
LPWSTR urlW = NULL;
DWORD res;
TRACE("(%d, %s, %d)\n", restriction, debugstr_a(url), reserved);
if (url) {
DWORD len = MultiByteToWideChar(CP_ACP, 0, url, -1, NULL, 0);
urlW = heap_alloc(len * sizeof(WCHAR));
MultiByteToWideChar(CP_ACP, 0, url, -1, urlW, len);
}
res = SHRestricted2W(restriction, urlW, reserved);
heap_free(urlW);
return res;
}