Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
d3aa44b2
Commit
d3aa44b2
authored
Dec 17, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Added support for QueryService(IID_IWebBrowserApp).
parent
ccf9b229
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
0 deletions
+48
-0
client.c
dlls/shdocvw/client.c
+5
-0
webbrowser.c
dlls/shdocvw/tests/webbrowser.c
+43
-0
No files found.
dlls/shdocvw/client.c
View file @
d3aa44b2
...
...
@@ -617,6 +617,11 @@ static HRESULT WINAPI ClServiceProvider_QueryService(IServiceProvider *iface, RE
return
IDispatch_QueryInterface
(
This
->
disp
,
riid
,
ppv
);
}
if
(
IsEqualGUID
(
&
IID_IWebBrowserApp
,
guidService
))
{
TRACE
(
"IWebBrowserApp service
\n
"
);
return
IDispatch_QueryInterface
(
This
->
disp
,
riid
,
ppv
);
}
FIXME
(
"(%p)->(%s %s %p)
\n
"
,
This
,
debugstr_guid
(
guidService
),
debugstr_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
...
...
dlls/shdocvw/tests/webbrowser.c
View file @
d3aa44b2
...
...
@@ -39,6 +39,7 @@
#include "shlguid.h"
#include "exdispid.h"
#include "mimeinfo.h"
#include "hlink.h"
DEFINE_GUID
(
GUID_NULL
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
);
DEFINE_OLEGUID
(
CGID_DocHostCmdPriv
,
0x000214D4L
,
0
,
0
);
...
...
@@ -157,6 +158,21 @@ static int strcmp_wa(LPCWSTR strw, const char *stra)
return
lstrcmpA
(
stra
,
buf
);
}
static
BOOL
iface_cmp
(
IUnknown
*
iface1
,
IUnknown
*
iface2
)
{
IUnknown
*
unk1
,
*
unk2
;
if
(
iface1
==
iface2
)
return
TRUE
;
IUnknown_QueryInterface
(
iface1
,
&
IID_IUnknown
,
(
void
**
)
&
unk1
);
IUnknown_Release
(
unk1
);
IUnknown_QueryInterface
(
iface2
,
&
IID_IUnknown
,
(
void
**
)
&
unk2
);
IUnknown_Release
(
unk2
);
return
unk1
==
unk2
;
}
static
const
char
*
debugstr_guid
(
REFIID
riid
)
{
static
char
buf
[
50
];
...
...
@@ -2807,6 +2823,31 @@ static void test_TranslateAccelerator(IUnknown *unk)
test_UIActivate
(
unk
,
FALSE
);
}
static
void
test_dochost_qs
(
IUnknown
*
unk
)
{
IOleClientSite
*
client_site
;
IServiceProvider
*
serv_prov
;
IUnknown
*
service
;
HRESULT
hres
;
client_site
=
get_dochost
(
unk
);
hres
=
IOleClientSite_QueryInterface
(
client_site
,
&
IID_IServiceProvider
,
(
void
**
)
&
serv_prov
);
IOleClientSite_Release
(
client_site
);
ok
(
hres
==
S_OK
,
"Could not get IServiceProvider iface: %08x
\n
"
,
hres
);
hres
=
IServiceProvider_QueryService
(
serv_prov
,
&
IID_IHlinkFrame
,
&
IID_IHlinkFrame
,
(
void
**
)
&
service
);
ok
(
hres
==
S_OK
,
"QueryService failed: %08x
\n
"
,
hres
);
ok
(
iface_cmp
(
service
,
unk
),
"service != unk
\n
"
);
IUnknown_Release
(
service
);
hres
=
IServiceProvider_QueryService
(
serv_prov
,
&
IID_IWebBrowserApp
,
&
IID_IHlinkFrame
,
(
void
**
)
&
service
);
ok
(
hres
==
S_OK
,
"QueryService failed: %08x
\n
"
,
hres
);
ok
(
iface_cmp
(
service
,
unk
),
"service != unk
\n
"
);
IUnknown_Release
(
service
);
IServiceProvider_Release
(
serv_prov
);
}
static
void
test_WebBrowser
(
BOOL
do_download
)
{
IUnknown
*
unk
=
NULL
;
...
...
@@ -2855,6 +2896,8 @@ static void test_WebBrowser(BOOL do_download)
ok
(
doc
==
doc2
,
"doc != doc2
\n
"
);
IDispatch_Release
(
doc2
);
IDispatch_Release
(
doc2
);
test_dochost_qs
(
unk
);
}
test_ClientSite
(
unk
,
NULL
,
!
do_download
);
...
...
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