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
3314bd8f
Commit
3314bd8f
authored
Dec 10, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added QueryService(SID_SBindHost) implementation.
parent
06f3b1a3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
pluginhost.c
dlls/mshtml/pluginhost.c
+6
-0
activex.c
dlls/mshtml/tests/activex.c
+17
-0
No files found.
dlls/mshtml/pluginhost.c
View file @
3314bd8f
...
...
@@ -838,6 +838,12 @@ static ULONG WINAPI PHServiceProvider_Release(IServiceProvider *iface)
static
HRESULT
WINAPI
PHServiceProvider_QueryService
(
IServiceProvider
*
iface
,
REFGUID
guidService
,
REFIID
riid
,
void
**
ppv
)
{
PluginHost
*
This
=
impl_from_IServiceProvider
(
iface
);
if
(
IsEqualGUID
(
guidService
,
&
SID_SBindHost
))
{
TRACE
(
"SID_SBindHost service
\n
"
);
return
IOleClientSite_QueryInterface
(
&
This
->
IOleClientSite_iface
,
riid
,
ppv
);
}
FIXME
(
"(%p)->(%s %s %p)
\n
"
,
This
,
debugstr_guid
(
guidService
),
debugstr_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
...
...
dlls/mshtml/tests/activex.c
View file @
3314bd8f
...
...
@@ -330,6 +330,8 @@ static HRESULT WINAPI PersistPropertyBag_InitNew(IPersistPropertyBag *face)
static
HRESULT
WINAPI
PersistPropertyBag_Load
(
IPersistPropertyBag
*
face
,
IPropertyBag
*
pPropBag
,
IErrorLog
*
pErrorLog
)
{
IBindHost
*
bind_host
,
*
bind_host2
;
IServiceProvider
*
sp
;
VARIANT
v
;
HRESULT
hres
;
...
...
@@ -384,6 +386,21 @@ static HRESULT WINAPI PersistPropertyBag_Load(IPersistPropertyBag *face, IProper
ok
(
V_BSTR
(
&
v
)
==
(
BSTR
)
0xdeadbeef
,
"V_BSTR(v) = %p
\n
"
,
V_BSTR
(
&
v
));
set_plugin_readystate
(
READYSTATE_INTERACTIVE
);
hres
=
IOleClientSite_QueryInterface
(
client_site
,
&
IID_IBindHost
,
(
void
**
)
&
bind_host
);
ok
(
hres
==
S_OK
,
"Could not get IBindHost iface: %08x
\n
"
,
hres
);
hres
=
IOleClientSite_QueryInterface
(
client_site
,
&
IID_IServiceProvider
,
(
void
**
)
&
sp
);
ok
(
hres
==
S_OK
,
"Could not get IServiceProvider iface: %08x
\n
"
,
hres
);
hres
=
IServiceProvider_QueryService
(
sp
,
&
IID_IBindHost
,
&
SID_SBindHost
,
(
void
**
)
&
bind_host2
);
ok
(
hres
==
S_OK
,
"QueryService(SID_SBindHost) failed: %08x
\n
"
,
hres
);
IServiceProvider_Release
(
sp
);
ok
(
iface_cmp
((
IUnknown
*
)
bind_host
,
(
IUnknown
*
)
bind_host2
),
"bind_host != bind_host2
\n
"
);
IBindHost_Release
(
bind_host2
);
IBindHost_Release
(
bind_host
);
set_plugin_readystate
(
READYSTATE_COMPLETE
);
return
S_OK
;
...
...
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