mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 08:06:39 +00:00
shdocvw: Implement go_home function.
This commit is contained in:
parent
42dc7fb1c4
commit
bbaa72de5f
|
@ -776,11 +776,27 @@ static HRESULT navigate_hlink(DocHost *This, IMoniker *mon, IBindCtx *bindctx,
|
|||
|
||||
HRESULT go_home(DocHost *This)
|
||||
{
|
||||
HKEY hkey;
|
||||
DWORD res, type, size;
|
||||
WCHAR wszPageName[MAX_PATH];
|
||||
static const WCHAR wszAboutBlank[] = {'a','b','o','u','t',':','b','l','a','n','k',0};
|
||||
static const WCHAR wszStartPage[] = {'S','t','a','r','t',' ','P','a','g','e',0};
|
||||
static const WCHAR wszSubKey[] = {'S','o','f','t','w','a','r','e','\\',
|
||||
'M','i','c','r','o','s','o','f','t','\\',
|
||||
'I','n','t','e','r','n','e','t',' ','E','x','p','l','o','r','e','r','\\',
|
||||
'M','a','i','n',0};
|
||||
|
||||
FIXME("stub\n");
|
||||
res = RegOpenKeyW(HKEY_CURRENT_USER, wszSubKey, &hkey);
|
||||
if (res != ERROR_SUCCESS)
|
||||
return navigate_url(This, wszAboutBlank, NULL, NULL, NULL, NULL);
|
||||
|
||||
return navigate_url(This, wszAboutBlank, NULL, NULL, NULL, NULL);
|
||||
size = sizeof(wszPageName);
|
||||
res = RegQueryValueExW(hkey, wszStartPage, NULL, &type, (LPBYTE)&wszPageName, &size);
|
||||
RegCloseKey(hkey);
|
||||
if (res != ERROR_SUCCESS || type != REG_SZ)
|
||||
return navigate_url(This, wszAboutBlank, NULL, NULL, NULL, NULL);
|
||||
|
||||
return navigate_url(This, wszPageName, NULL, NULL, NULL, NULL);
|
||||
}
|
||||
|
||||
#define HLINKFRAME_THIS(iface) DEFINE_THIS(WebBrowser, HlinkFrame, iface)
|
||||
|
|
Loading…
Reference in a new issue