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
6152fe70
Commit
6152fe70
authored
Sep 08, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Sep 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use query_interface in the dispex vtbl for builtin constructors.
Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
e03b5f0f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
46 deletions
+45
-46
htmlimg.c
dlls/mshtml/htmlimg.c
+15
-14
htmlselect.c
dlls/mshtml/htmlselect.c
+15
-16
xmlhttprequest.c
dlls/mshtml/xmlhttprequest.c
+15
-16
No files found.
dlls/mshtml/htmlimg.c
View file @
6152fe70
...
...
@@ -758,22 +758,12 @@ static HRESULT WINAPI HTMLImageElementFactory_QueryInterface(IHTMLImageElementFa
{
HTMLImageElementFactory
*
This
=
impl_from_IHTMLImageElementFactory
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
*
ppv
=
&
This
->
IHTMLImageElementFactory_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLImageElementFactory
,
riid
))
{
*
ppv
=
&
This
->
IHTMLImageElementFactory_iface
;
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
else
{
*
ppv
=
NULL
;
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
*
ppv
=
NULL
;
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
HTMLImageElementFactory_AddRef
(
IHTMLImageElementFactory
*
iface
)
...
...
@@ -921,6 +911,16 @@ static inline HTMLImageElementFactory *impl_from_DispatchEx(DispatchEx *iface)
return
CONTAINING_RECORD
(
iface
,
HTMLImageElementFactory
,
dispex
);
}
static
void
*
HTMLImageElementFactory_query_interface
(
DispatchEx
*
dispex
,
REFIID
riid
)
{
HTMLImageElementFactory
*
This
=
impl_from_DispatchEx
(
dispex
);
if
(
IsEqualGUID
(
&
IID_IHTMLImageElementFactory
,
riid
))
return
&
This
->
IHTMLImageElementFactory_iface
;
return
NULL
;
}
static
void
HTMLImageElementFactory_destructor
(
DispatchEx
*
dispex
)
{
HTMLImageElementFactory
*
This
=
impl_from_DispatchEx
(
dispex
);
...
...
@@ -961,6 +961,7 @@ static const tid_t HTMLImageElementFactory_iface_tids[] = {
};
static
const
dispex_static_data_vtbl_t
HTMLImageElementFactory_dispex_vtbl
=
{
.
query_interface
=
HTMLImageElementFactory_query_interface
,
.
destructor
=
HTMLImageElementFactory_destructor
,
.
value
=
HTMLImageElementFactory_value
,
};
...
...
dlls/mshtml/htmlselect.c
View file @
6152fe70
...
...
@@ -430,24 +430,12 @@ static HRESULT WINAPI HTMLOptionElementFactory_QueryInterface(IHTMLOptionElement
{
HTMLOptionElementFactory
*
This
=
impl_from_IHTMLOptionElementFactory
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
*
ppv
=
&
This
->
IHTMLOptionElementFactory_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
*
ppv
=
&
This
->
IHTMLOptionElementFactory_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLOptionElementFactory
,
riid
))
{
*
ppv
=
&
This
->
IHTMLOptionElementFactory_iface
;
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
else
{
*
ppv
=
NULL
;
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
*
ppv
=
NULL
;
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
HTMLOptionElementFactory_AddRef
(
IHTMLOptionElementFactory
*
iface
)
...
...
@@ -566,6 +554,16 @@ static inline HTMLOptionElementFactory *HTMLOptionElementFactory_from_DispatchEx
return
CONTAINING_RECORD
(
iface
,
HTMLOptionElementFactory
,
dispex
);
}
static
void
*
HTMLOptionElementFactory_query_interface
(
DispatchEx
*
dispex
,
REFIID
riid
)
{
HTMLOptionElementFactory
*
This
=
HTMLOptionElementFactory_from_DispatchEx
(
dispex
);
if
(
IsEqualGUID
(
&
IID_IHTMLOptionElementFactory
,
riid
))
return
&
This
->
IHTMLOptionElementFactory_iface
;
return
NULL
;
}
static
void
HTMLOptionElementFactory_destructor
(
DispatchEx
*
dispex
)
{
HTMLOptionElementFactory
*
This
=
HTMLOptionElementFactory_from_DispatchEx
(
dispex
);
...
...
@@ -610,6 +608,7 @@ static const tid_t HTMLOptionElementFactory_iface_tids[] = {
};
static
const
dispex_static_data_vtbl_t
HTMLOptionElementFactory_dispex_vtbl
=
{
.
query_interface
=
HTMLOptionElementFactory_query_interface
,
.
destructor
=
HTMLOptionElementFactory_destructor
,
.
value
=
HTMLOptionElementFactory_value
,
};
...
...
dlls/mshtml/xmlhttprequest.c
View file @
6152fe70
...
...
@@ -1641,24 +1641,12 @@ static HRESULT WINAPI HTMLXMLHttpRequestFactory_QueryInterface(IHTMLXMLHttpReque
{
HTMLXMLHttpRequestFactory
*
This
=
impl_from_IHTMLXMLHttpRequestFactory
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
if
(
IsEqualGUID
(
&
IID_IUnknown
,
riid
))
{
*
ppv
=
&
This
->
IHTMLXMLHttpRequestFactory_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IDispatch
,
riid
))
{
*
ppv
=
&
This
->
IHTMLXMLHttpRequestFactory_iface
;
}
else
if
(
IsEqualGUID
(
&
IID_IHTMLXMLHttpRequestFactory
,
riid
))
{
*
ppv
=
&
This
->
IHTMLXMLHttpRequestFactory_iface
;
}
else
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
{
if
(
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
))
return
*
ppv
?
S_OK
:
E_NOINTERFACE
;
}
else
{
*
ppv
=
NULL
;
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
*
ppv
=
NULL
;
WARN
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_mshtml_guid
(
riid
),
ppv
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
HTMLXMLHttpRequestFactory_AddRef
(
IHTMLXMLHttpRequestFactory
*
iface
)
...
...
@@ -1798,6 +1786,16 @@ static inline HTMLXMLHttpRequestFactory *factory_from_DispatchEx(DispatchEx *ifa
return
CONTAINING_RECORD
(
iface
,
HTMLXMLHttpRequestFactory
,
dispex
);
}
static
void
*
HTMLXMLHttpRequestFactory_query_interface
(
DispatchEx
*
dispex
,
REFIID
riid
)
{
HTMLXMLHttpRequestFactory
*
This
=
factory_from_DispatchEx
(
dispex
);
if
(
IsEqualGUID
(
&
IID_IHTMLXMLHttpRequestFactory
,
riid
))
return
&
This
->
IHTMLXMLHttpRequestFactory_iface
;
return
NULL
;
}
static
void
HTMLXMLHttpRequestFactory_destructor
(
DispatchEx
*
dispex
)
{
HTMLXMLHttpRequestFactory
*
This
=
factory_from_DispatchEx
(
dispex
);
...
...
@@ -1828,6 +1826,7 @@ static HRESULT HTMLXMLHttpRequestFactory_value(DispatchEx *iface, LCID lcid, WOR
}
static
const
dispex_static_data_vtbl_t
HTMLXMLHttpRequestFactory_dispex_vtbl
=
{
.
query_interface
=
HTMLXMLHttpRequestFactory_query_interface
,
.
destructor
=
HTMLXMLHttpRequestFactory_destructor
,
.
value
=
HTMLXMLHttpRequestFactory_value
};
...
...
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