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
a15301a0
Commit
a15301a0
authored
Oct 01, 2010
by
Vitaly Perov
Committed by
Alexandre Julliard
Oct 01, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Silence more invalid QueryInterface FIXMEs.
parent
ca042b29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
webbrowser.c
dlls/shdocvw/tests/webbrowser.c
+10
-0
webbrowser.c
dlls/shdocvw/webbrowser.c
+6
-0
No files found.
dlls/shdocvw/tests/webbrowser.c
View file @
a15301a0
...
...
@@ -2437,6 +2437,8 @@ static void test_QueryInterface(IUnknown *unk)
IObjectWithSite
*
site
=
(
void
*
)
0xdeadbeef
;
IViewObjectEx
*
viewex
=
(
void
*
)
0xdeadbeef
;
IOleLink
*
link
=
(
void
*
)
0xdeadbeef
;
IMarshal
*
marshal
=
(
void
*
)
0xdeadbeef
;
IStdMarshalInfo
*
marshalinfo
=
(
void
*
)
0xdeadbeef
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IQuickActivate
,
(
void
**
)
&
qa
);
...
...
@@ -2471,6 +2473,14 @@ static void test_QueryInterface(IUnknown *unk)
ok
(
hres
==
E_NOINTERFACE
,
"QueryInterface returned %08x, expected E_NOINTERFACE
\n
"
,
hres
);
ok
(
link
==
NULL
,
"link=%p, expected NULL
\n
"
,
link
);
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IMarshal
,
(
void
**
)
&
marshal
);
ok
(
hres
==
E_NOINTERFACE
,
"QueryInterface returned %08x, expected E_NOINTERFACE
\n
"
,
hres
);
ok
(
marshal
==
NULL
,
"marshal=%p, expected NULL
\n
"
,
marshal
);
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IStdMarshalInfo
,
(
void
**
)
&
marshalinfo
);
ok
(
hres
==
E_NOINTERFACE
,
"QueryInterface returned %08x, expected E_NOINTERFACE
\n
"
,
hres
);
ok
(
marshalinfo
==
NULL
,
"marshalinfo=%p, expected NULL
\n
"
,
marshalinfo
);
}
static
void
test_WebBrowser
(
BOOL
do_download
)
...
...
dlls/shdocvw/webbrowser.c
View file @
a15301a0
...
...
@@ -130,6 +130,12 @@ static HRESULT WINAPI WebBrowser_QueryInterface(IWebBrowser2 *iface, REFIID riid
}
else
if
(
IsEqualGUID
(
&
IID_IOleLink
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleLink %p) returning NULL
\n
"
,
This
,
ppv
);
return
E_NOINTERFACE
;
}
else
if
(
IsEqualGUID
(
&
IID_IMarshal
,
riid
))
{
TRACE
(
"(%p)->(IID_IMarshal %p) returning NULL
\n
"
,
This
,
ppv
);
return
E_NOINTERFACE
;
}
else
if
(
IsEqualGUID
(
&
IID_IStdMarshalInfo
,
riid
))
{
TRACE
(
"(%p)->(IID_IStdMarshalInfo %p) returning NULL
\n
"
,
This
,
ppv
);
return
E_NOINTERFACE
;
}
else
if
(
HlinkFrame_QI
(
&
This
->
hlink_frame
,
riid
,
ppv
))
{
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