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
39c12989
Commit
39c12989
authored
Jan 09, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieframe: Added support for SID_SHTMLWindow in WebBrowser::QueryService.
parent
0702d31c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
+16
-9
webbrowser.c
dlls/ieframe/tests/webbrowser.c
+10
-6
webbrowser.c
dlls/ieframe/webbrowser.c
+6
-3
No files found.
dlls/ieframe/tests/webbrowser.c
View file @
39c12989
...
...
@@ -2697,21 +2697,25 @@ static void test_olecmd(IUnknown *unk, BOOL loaded)
static
void
test_IServiceProvider
(
IUnknown
*
unk
)
{
IServiceProvider
*
servprov
=
(
void
*
)
0xdeadbeef
;
IUnknown
*
iface
;
HRESULT
hres
;
IUnknown
*
ret
=
NULL
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IServiceProvider
,
(
void
**
)
&
servprov
);
ok
(
hres
==
S_OK
,
"QueryInterface returned %08x, expected S_OK
\n
"
,
hres
);
if
(
FAILED
(
hres
))
return
;
hres
=
IServiceProvider_QueryService
(
servprov
,
&
SID_STopLevelBrowser
,
&
IID_IBrowserService2
,
(
LPVOID
*
)
&
ret
);
hres
=
IServiceProvider_QueryService
(
servprov
,
&
SID_STopLevelBrowser
,
&
IID_IBrowserService2
,
(
LPVOID
*
)
&
iface
);
ok
(
hres
==
E_FAIL
,
"QueryService returned %08x, expected E_FAIL
\n
"
,
hres
);
ok
(
ret
==
NULL
,
"ret returned %p, expected NULL
\n
"
,
ret
);
ok
(
!
iface
,
"QueryService returned %p, expected NULL
\n
"
,
iface
);
if
(
hres
==
S_OK
)
{
IUnknown_Release
(
ret
);
}
IUnknown_Release
(
iface
);
hres
=
IServiceProvider_QueryService
(
servprov
,
&
SID_SHTMLWindow
,
&
IID_IHTMLWindow2
,
(
LPVOID
*
)
&
iface
);
ok
(
hres
==
S_OK
,
"QueryService returned %08x, expected S_OK
\n
"
,
hres
);
ok
(
iface
!=
NULL
,
"QueryService returned NULL
\n
"
);
if
(
hres
==
S_OK
)
IUnknown_Release
(
iface
);
IServiceProvider_Release
(
servprov
);
}
...
...
dlls/ieframe/webbrowser.c
View file @
39c12989
...
...
@@ -1143,16 +1143,19 @@ static HRESULT STDMETHODCALLTYPE WBServiceProvider_QueryService(IServiceProvider
{
WebBrowser
*
This
=
impl_from_IServiceProvider
(
iface
);
if
(
*
ppv
)
ppv
=
NULL
;
if
(
IsEqualGUID
(
&
SID_SHTMLWindow
,
riid
))
{
TRACE
(
"(%p)->(SID_SHTMLWindow)
\n
"
,
This
);
return
IHTMLWindow2_QueryInterface
(
&
This
->
doc_host
.
html_window
.
IHTMLWindow2_iface
,
riid
,
ppv
);
}
if
(
IsEqualGUID
(
&
IID_IBrowserService2
,
riid
))
{
TRACE
(
"(%p)->(IID_IBrowserService2 return E_FAIL)
\n
"
,
This
);
*
ppv
=
NULL
;
return
E_FAIL
;
}
FIXME
(
"(%p)->(%s, %s %p)
\n
"
,
This
,
debugstr_guid
(
guidService
),
debugstr_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
return
E_NOINTERFACE
;
}
...
...
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