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
8302f073
Commit
8302f073
authored
Oct 02, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Silence common invalid QueryInterface FIXMEs.
parent
463d0105
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
webbrowser.c
dlls/shdocvw/tests/webbrowser.c
+16
-0
webbrowser.c
dlls/shdocvw/webbrowser.c
+6
-0
No files found.
dlls/shdocvw/tests/webbrowser.c
View file @
8302f073
...
...
@@ -936,6 +936,21 @@ static void test_Extent(IUnknown *unk)
IOleObject_Release
(
oleobj
);
}
static
void
test_QueryInterface
(
IUnknown
*
unk
)
{
IQuickActivate
*
qa
=
(
IQuickActivate
*
)
0xdeadbeef
;
IRunnableObject
*
runnable
=
(
IRunnableObject
*
)
0xdeadbeef
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IQuickActivate
,
(
void
**
)
&
qa
);
ok
(
hres
==
E_NOINTERFACE
,
"QueryInterface returned %08lx, expected E_NOINTERFACE
\n
"
,
hres
);
ok
(
qa
==
NULL
,
"qa=%p, ezpected NULL
\n
"
,
qa
);
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IRunnableObject
,
(
void
**
)
&
runnable
);
ok
(
hres
==
E_NOINTERFACE
,
"QueryInterface returned %08lx, expected E_NOINTERFACE
\n
"
,
hres
);
ok
(
runnable
==
NULL
,
"runnable=%p, ezpected NULL
\n
"
,
runnable
);
}
static
void
test_WebBrowser
(
void
)
{
IUnknown
*
unk
=
NULL
;
...
...
@@ -948,6 +963,7 @@ static void test_WebBrowser(void)
if
(
FAILED
(
hres
))
return
;
test_QueryInterface
(
unk
);
test_ClassInfo
(
unk
);
test_ClientSite
(
unk
,
&
ClientSite
);
test_Extent
(
unk
);
...
...
dlls/shdocvw/webbrowser.c
View file @
8302f073
...
...
@@ -99,6 +99,12 @@ static HRESULT WINAPI WebBrowser_QueryInterface(IWebBrowser2 *iface, REFIID riid
}
else
if
(
IsEqualGUID
(
&
IID_IHlinkFrame
,
riid
))
{
TRACE
(
"(%p)->(IID_IHlinkFrame %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HLINKFRAME
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IQuickActivate
,
riid
))
{
TRACE
(
"(%p)->(IID_IQuickActivate %p) returning NULL
\n
"
,
This
,
ppv
);
return
E_NOINTERFACE
;
}
else
if
(
IsEqualGUID
(
&
IID_IRunnableObject
,
riid
))
{
TRACE
(
"(%p)->(IID_IRunnableObject %p) returning NULL
\n
"
,
This
,
ppv
);
return
E_NOINTERFACE
;
}
if
(
*
ppv
)
{
...
...
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