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
be2a86cb
Commit
be2a86cb
authored
Dec 28, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Query OleClientSite about services in ServiceProvider_QueryService.
parent
044a989d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
service.c
dlls/mshtml/service.c
+16
-1
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+20
-0
No files found.
dlls/mshtml/service.c
View file @
be2a86cb
...
...
@@ -248,9 +248,24 @@ static HRESULT WINAPI ServiceProvider_QueryService(IServiceProvider *iface, REFG
return
S_OK
;
}
if
(
This
->
doc_obj
->
client
)
{
IServiceProvider
*
sp
;
HRESULT
hres
;
hres
=
IOleClientSite_QueryInterface
(
This
->
doc_obj
->
client
,
&
IID_IServiceProvider
,
(
void
**
)
&
sp
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
IServiceProvider_QueryService
(
sp
,
guidService
,
riid
,
ppv
);
IServiceProvider_Release
(
sp
);
if
(
SUCCEEDED
(
hres
))
return
hres
;
}
}
FIXME
(
"(%p)->(%s %s %p)
\n
"
,
This
,
debugstr_guid
(
guidService
),
debugstr_guid
(
riid
),
ppv
);
return
E_
UNEXPECTED
;
return
E_
NOINTERFACE
;
}
static
const
IServiceProviderVtbl
ServiceProviderVtbl
=
{
...
...
dlls/mshtml/tests/htmldoc.c
View file @
be2a86cb
...
...
@@ -4508,6 +4508,24 @@ static void test_HTMLDocument_http(void)
ok
(
!
ref
,
"ref=%d, expected 0
\n
"
,
ref
);
}
static
void
test_QueryService
(
IUnknown
*
unk
,
BOOL
success
)
{
IServiceProvider
*
sp
;
IHlinkFrame
*
hf
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IServiceProvider
,
(
void
**
)
&
sp
);
ok
(
hres
==
S_OK
,
"QueryService returned %08x
\n
"
,
hres
);
hres
=
IServiceProvider_QueryService
(
sp
,
&
IID_IHlinkFrame
,
&
IID_IHlinkFrame
,
(
void
**
)
&
hf
);
if
(
SUCCEEDED
(
hres
))
IHlinkFrame_Release
(
hf
);
ok
(
hres
==
(
success
?
S_OK
:
E_NOINTERFACE
),
"QueryService returned %08x, expected %08x
\n
"
,
hres
,
success
?
S_OK
:
E_NOINTERFACE
);
IServiceProvider_Release
(
sp
);
}
static
void
test_HTMLDocument_StreamLoad
(
void
)
{
IOleObject
*
oleobj
;
...
...
@@ -4535,7 +4553,9 @@ static void test_HTMLDocument_StreamLoad(void)
test_readyState
(
unk
);
test_IsDirty
(
unk
,
S_FALSE
);
test_ConnectionPointContainer
(
unk
);
test_QueryService
(
unk
,
FALSE
);
test_ClientSite
(
oleobj
,
CLIENTSITE_EXPECTPATH
);
test_QueryService
(
unk
,
TRUE
);
test_DoVerb
(
oleobj
);
test_MSHTML_QueryStatus
(
unk
,
OLECMDF_SUPPORTED
);
...
...
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