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
e9cb1464
Commit
e9cb1464
authored
Oct 04, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Return IHTMLElementCollection instead of IDispatch from HTMLElementCollection_Create.
parent
e5816090
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
htmlelem.c
dlls/mshtml/htmlelem.c
+12
-9
No files found.
dlls/mshtml/htmlelem.c
View file @
e9cb1464
...
...
@@ -38,7 +38,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
mshtml
);
static
HRESULT
HTMLElementCollection_Create
(
IUnknown
*
,
HTMLElement
**
,
DWORD
,
IDispatch
**
);
static
IHTMLElementCollection
*
HTMLElementCollection_Create
(
IUnknown
*
,
HTMLElement
**
,
DWORD
);
typedef
struct
{
HTMLElement
**
buf
;
...
...
@@ -1083,7 +1083,8 @@ static HRESULT WINAPI HTMLElement_get_children(IHTMLElement *iface, IDispatch **
create_child_list
(
This
->
node
.
doc
,
This
,
&
buf
);
return
HTMLElementCollection_Create
((
IUnknown
*
)
HTMLELEM
(
This
),
buf
.
buf
,
buf
.
len
,
p
);
*
p
=
(
IDispatch
*
)
HTMLElementCollection_Create
((
IUnknown
*
)
HTMLELEM
(
This
),
buf
.
buf
,
buf
.
len
);
return
S_OK
;
}
static
void
create_all_list
(
HTMLDocument
*
doc
,
HTMLElement
*
elem
,
elem_vector
*
buf
)
...
...
@@ -1133,7 +1134,8 @@ static HRESULT WINAPI HTMLElement_get_all(IHTMLElement *iface, IDispatch **p)
create_all_list
(
This
->
node
.
doc
,
This
,
&
buf
);
elem_vector_normalize
(
&
buf
);
return
HTMLElementCollection_Create
((
IUnknown
*
)
HTMLELEM
(
This
),
buf
.
buf
,
buf
.
len
,
p
);
*
p
=
(
IDispatch
*
)
HTMLElementCollection_Create
((
IUnknown
*
)
HTMLELEM
(
This
),
buf
.
buf
,
buf
.
len
);
return
S_OK
;
}
#undef HTMLELEM_THIS
...
...
@@ -1526,7 +1528,8 @@ static HRESULT WINAPI HTMLElementCollection_item(IHTMLElementCollection *iface,
}
elem_vector_normalize
(
&
buf
);
TRACE
(
"Returning %d element(s).
\n
"
,
buf
.
len
);
return
HTMLElementCollection_Create
(
This
->
ref_unk
,
buf
.
buf
,
buf
.
len
,
pdisp
);
*
pdisp
=
(
IDispatch
*
)
HTMLElementCollection_Create
(
This
->
ref_unk
,
buf
.
buf
,
buf
.
len
);
return
S_OK
;
}
FIXME
(
"unsupported arguments
\n
"
);
...
...
@@ -1570,7 +1573,8 @@ static HRESULT WINAPI HTMLElementCollection_tags(IHTMLElementCollection *iface,
TRACE
(
"fount %d tags
\n
"
,
buf
.
len
);
return
HTMLElementCollection_Create
(
This
->
ref_unk
,
buf
.
buf
,
buf
.
len
,
pdisp
);
*
pdisp
=
(
IDispatch
*
)
HTMLElementCollection_Create
(
This
->
ref_unk
,
buf
.
buf
,
buf
.
len
);
return
S_OK
;
}
#undef ELEMCOL_THIS
...
...
@@ -1591,8 +1595,8 @@ static const IHTMLElementCollectionVtbl HTMLElementCollectionVtbl = {
HTMLElementCollection_tags
};
static
HRESULT
HTMLElementCollection_Create
(
IUnknown
*
ref_unk
,
HTMLElement
**
elems
,
DWORD
len
,
IDispatch
**
p
)
static
IHTMLElementCollection
*
HTMLElementCollection_Create
(
IUnknown
*
ref_unk
,
HTMLElement
**
elems
,
DWORD
len
)
{
HTMLElementCollection
*
ret
=
mshtml_alloc
(
sizeof
(
HTMLElementCollection
));
...
...
@@ -1606,6 +1610,5 @@ static HRESULT HTMLElementCollection_Create(IUnknown *ref_unk, HTMLElement **ele
TRACE
(
"ret=%p len=%d
\n
"
,
ret
,
len
);
*
p
=
(
IDispatch
*
)
ret
;
return
S_OK
;
return
HTMLELEMCOL
(
ret
);
}
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