Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
bbaa72de
Commit
bbaa72de
authored
Nov 28, 2008
by
Vladimir Pankratov
Committed by
Alexandre Julliard
Nov 28, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Implement go_home function.
parent
42dc7fb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
navigate.c
dlls/shdocvw/navigate.c
+19
-3
No files found.
dlls/shdocvw/navigate.c
View file @
bbaa72de
...
...
@@ -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
};
res
=
RegOpenKeyW
(
HKEY_CURRENT_USER
,
wszSubKey
,
&
hkey
);
if
(
res
!=
ERROR_SUCCESS
)
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
);
FIXME
(
"stub
\n
"
);
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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment