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
af3d19fa
Commit
af3d19fa
authored
Jun 30, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: DispatchEx's QueryInterface implementation clean up.
parent
19be7d62
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
28 additions
and
24 deletions
+28
-24
dispex.c
dlls/mshtml/dispex.c
+17
-0
htmlelem.c
dlls/mshtml/htmlelem.c
+2
-6
htmlnode.c
dlls/mshtml/htmlnode.c
+4
-6
htmlstyle.c
dlls/mshtml/htmlstyle.c
+2
-6
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
omnavigator.c
dlls/mshtml/omnavigator.c
+2
-6
No files found.
dlls/mshtml/dispex.c
View file @
af3d19fa
...
...
@@ -621,6 +621,23 @@ static IDispatchExVtbl DispatchExVtbl = {
DispatchEx_GetNameSpaceParent
};
BOOL
dispex_query_interface
(
DispatchEx
*
This
,
REFIID
riid
,
void
**
ppv
)
{
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatch %p)
\n
"
,
This
,
ppv
);
*
ppv
=
DISPATCHEX
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatchEx
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatchEx %p)
\n
"
,
This
,
ppv
);
*
ppv
=
DISPATCHEX
(
This
);
}
else
{
return
FALSE
;
}
if
(
*
ppv
)
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
TRUE
;
}
void
init_dispex
(
DispatchEx
*
dispex
,
IUnknown
*
outer
,
dispex_static_data_t
*
data
)
{
dispex
->
lpIDispatchExVtbl
=
&
DispatchExVtbl
;
...
...
dlls/mshtml/htmlelem.c
View file @
af3d19fa
...
...
@@ -1542,15 +1542,11 @@ static HRESULT WINAPI HTMLElementCollection_QueryInterface(IHTMLElementCollectio
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
TRACE
(
"(%p)->(IID_IUnknown %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLELEMCOL
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatch %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLELEMCOL
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatchEx
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatchEx %p)
\n
"
,
This
,
ppv
);
*
ppv
=
DISPATCHEX
(
&
This
->
dispex
);
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLElementCollection
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLElementCollection %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLELEMCOL
(
This
);
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
if
(
*
ppv
)
{
...
...
dlls/mshtml/htmlnode.c
View file @
af3d19fa
...
...
@@ -58,15 +58,11 @@ static HRESULT WINAPI HTMLDOMChildrenCollection_QueryInterface(IHTMLDOMChildrenC
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
TRACE
(
"(%p)->(IID_IUnknown %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLCHILDCOL
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatch %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLCHILDCOL
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatchEx
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatchEx %p)
\n
"
,
This
,
ppv
);
*
ppv
=
DISPATCHEX
(
&
This
->
dispex
);
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLDOMChildrenCollection
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLDOMChildrenCollection %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLCHILDCOL
(
This
);
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
if
(
*
ppv
)
{
...
...
@@ -819,6 +815,8 @@ HRESULT HTMLDOMNode_QI(HTMLDOMNode *This, REFIID riid, void **ppv)
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLDOMNode2
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLDOMNode2 %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLDOMNODE2
(
This
);
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
if
(
*
ppv
)
{
...
...
dlls/mshtml/htmlstyle.c
View file @
af3d19fa
...
...
@@ -235,15 +235,11 @@ static HRESULT WINAPI HTMLStyle_QueryInterface(IHTMLStyle *iface, REFIID riid, v
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
TRACE
(
"(%p)->(IID_IUnknown %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLSTYLE
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatch %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLSTYLE
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatchEx
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatchEx %p)
\n
"
,
This
,
ppv
);
*
ppv
=
DISPATCHEX
(
&
This
->
dispex
);
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLStyle
,
riid
))
{
TRACE
(
"(%p)->(IID_IHTMLStyle %p)
\n
"
,
This
,
ppv
);
*
ppv
=
HTMLSTYLE
(
This
);
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
if
(
*
ppv
)
{
...
...
dlls/mshtml/mshtml_private.h
View file @
af3d19fa
...
...
@@ -134,6 +134,7 @@ typedef struct {
}
DispatchEx
;
void
init_dispex
(
DispatchEx
*
,
IUnknown
*
,
dispex_static_data_t
*
);
BOOL
dispex_query_interface
(
DispatchEx
*
,
REFIID
,
void
**
);
typedef
struct
{
DispatchEx
dispex
;
...
...
dlls/mshtml/omnavigator.c
View file @
af3d19fa
...
...
@@ -51,15 +51,11 @@ static HRESULT WINAPI OmNavigator_QueryInterface(IOmNavigator *iface, REFIID rii
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
TRACE
(
"(%p)->(IID_IUnknown %p)
\n
"
,
This
,
ppv
);
*
ppv
=
OMNAVIGATOR
(
This
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatch %p)
\n
"
,
This
,
ppv
);
*
ppv
=
DISPATCHEX
(
&
This
->
dispex
);
}
else
if
(
IsEqualGUID
(
&
IID_IDispatchEx
,
riid
))
{
TRACE
(
"(%p)->(IID_IDispatchEx %p)
\n
"
,
This
,
ppv
);
*
ppv
=
DISPATCHEX
(
&
This
->
dispex
);
}
else
if
(
IsEqualGUID
(
&
IID_IOmNavigator
,
riid
))
{
TRACE
(
"(%p)->(IID_IOmNavigator %p)
\n
"
,
This
,
ppv
);
*
ppv
=
OMNAVIGATOR
(
This
);
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
return
*
ppv
?
S_OK
:
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