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
aa30f442
Commit
aa30f442
authored
Nov 25, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Silence common invalid QueryInterface FIXMEs.
parent
8c2b994c
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 @
aa30f442
...
@@ -1412,6 +1412,8 @@ static void test_QueryInterface(IUnknown *unk)
...
@@ -1412,6 +1412,8 @@ static void test_QueryInterface(IUnknown *unk)
{
{
IQuickActivate
*
qa
=
(
IQuickActivate
*
)
0xdeadbeef
;
IQuickActivate
*
qa
=
(
IQuickActivate
*
)
0xdeadbeef
;
IRunnableObject
*
runnable
=
(
IRunnableObject
*
)
0xdeadbeef
;
IRunnableObject
*
runnable
=
(
IRunnableObject
*
)
0xdeadbeef
;
IPerPropertyBrowsing
*
propbrowse
=
(
void
*
)
0xdeadbeef
;
IOleCache
*
cache
=
(
void
*
)
0xdeadbeef
;
HRESULT
hres
;
HRESULT
hres
;
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IQuickActivate
,
(
void
**
)
&
qa
);
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IQuickActivate
,
(
void
**
)
&
qa
);
...
@@ -1421,6 +1423,14 @@ static void test_QueryInterface(IUnknown *unk)
...
@@ -1421,6 +1423,14 @@ static void test_QueryInterface(IUnknown *unk)
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IRunnableObject
,
(
void
**
)
&
runnable
);
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IRunnableObject
,
(
void
**
)
&
runnable
);
ok
(
hres
==
E_NOINTERFACE
,
"QueryInterface returned %08x, expected E_NOINTERFACE
\n
"
,
hres
);
ok
(
hres
==
E_NOINTERFACE
,
"QueryInterface returned %08x, expected E_NOINTERFACE
\n
"
,
hres
);
ok
(
runnable
==
NULL
,
"runnable=%p, ezpected NULL
\n
"
,
runnable
);
ok
(
runnable
==
NULL
,
"runnable=%p, ezpected NULL
\n
"
,
runnable
);
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IPerPropertyBrowsing
,
(
void
**
)
&
propbrowse
);
ok
(
hres
==
E_NOINTERFACE
,
"QueryInterface returned %08x, expected E_NOINTERFACE
\n
"
,
hres
);
ok
(
runnable
==
NULL
,
"runnable=%p, ezpected NULL
\n
"
,
runnable
);
hres
=
IUnknown_QueryInterface
(
unk
,
&
IID_IOleCache
,
(
void
**
)
&
cache
);
ok
(
hres
==
E_NOINTERFACE
,
"QueryInterface returned %08x, expected E_NOINTERFACE
\n
"
,
hres
);
ok
(
cache
==
NULL
,
"runnable=%p, ezpected NULL
\n
"
,
runnable
);
}
}
static
void
test_WebBrowser
(
void
)
static
void
test_WebBrowser
(
void
)
...
...
dlls/shdocvw/webbrowser.c
View file @
aa30f442
...
@@ -108,6 +108,12 @@ static HRESULT WINAPI WebBrowser_QueryInterface(IWebBrowser2 *iface, REFIID riid
...
@@ -108,6 +108,12 @@ static HRESULT WINAPI WebBrowser_QueryInterface(IWebBrowser2 *iface, REFIID riid
}
else
if
(
IsEqualGUID
(
&
IID_IRunnableObject
,
riid
))
{
}
else
if
(
IsEqualGUID
(
&
IID_IRunnableObject
,
riid
))
{
TRACE
(
"(%p)->(IID_IRunnableObject %p) returning NULL
\n
"
,
This
,
ppv
);
TRACE
(
"(%p)->(IID_IRunnableObject %p) returning NULL
\n
"
,
This
,
ppv
);
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
}
else
if
(
IsEqualGUID
(
&
IID_IPerPropertyBrowsing
,
riid
))
{
TRACE
(
"(%p)->(IID_IPerPropertyBrowsing %p) returning NULL
\n
"
,
This
,
ppv
);
return
E_NOINTERFACE
;
}
else
if
(
IsEqualGUID
(
&
IID_IOleCache
,
riid
))
{
TRACE
(
"(%p)->(IID_IOleCache %p) returning NULL
\n
"
,
This
,
ppv
);
return
E_NOINTERFACE
;
}
}
if
(
*
ppv
)
{
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