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
2ce0f8fd
Commit
2ce0f8fd
authored
Nov 04, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix collection index based support for IXMLDOMSelection.
parent
70e0290d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
selection.c
dlls/msxml3/selection.c
+1
-8
domdoc.c
dlls/msxml3/tests/domdoc.c
+18
-0
No files found.
dlls/msxml3/selection.c
View file @
2ce0f8fd
...
...
@@ -185,13 +185,10 @@ static HRESULT WINAPI domselection_GetTypeInfo(
ITypeInfo
**
ppTInfo
)
{
domselection
*
This
=
impl_from_IXMLDOMSelection
(
iface
);
HRESULT
hr
;
TRACE
(
"(%p)->(%u %u %p)
\n
"
,
This
,
iTInfo
,
lcid
,
ppTInfo
);
hr
=
get_typeinfo
(
IXMLDOMSelection_tid
,
ppTInfo
);
return
hr
;
return
get_typeinfo
(
IXMLDOMSelection_tid
,
ppTInfo
);
}
static
HRESULT
WINAPI
domselection_GetIDsOfNames
(
...
...
@@ -606,7 +603,6 @@ static HRESULT create_enumvariant(IXMLDOMSelection *selection, BOOL own, IUnknow
static
HRESULT
domselection_get_dispid
(
IUnknown
*
iface
,
BSTR
name
,
DWORD
flags
,
DISPID
*
dispid
)
{
domselection
*
This
=
impl_from_IXMLDOMSelection
(
(
IXMLDOMSelection
*
)
iface
);
WCHAR
*
ptr
;
int
idx
=
0
;
...
...
@@ -615,9 +611,6 @@ static HRESULT domselection_get_dispid(IUnknown *iface, BSTR name, DWORD flags,
if
(
*
ptr
)
return
DISP_E_UNKNOWNNAME
;
if
(
idx
>=
xmlXPathNodeSetGetLength
(
This
->
result
->
nodesetval
))
return
DISP_E_UNKNOWNNAME
;
*
dispid
=
DISPID_DOM_COLLECTION_BASE
+
idx
;
TRACE
(
"ret %x
\n
"
,
*
dispid
);
return
S_OK
;
...
...
dlls/msxml3/tests/domdoc.c
View file @
2ce0f8fd
...
...
@@ -9999,10 +9999,12 @@ static void test_selection(void)
IEnumVARIANT
*
enum1
,
*
enum2
,
*
enum3
;
IXMLDOMNodeList
*
list
;
IXMLDOMDocument
*
doc
;
IDispatchEx
*
dispex
;
IXMLDOMNode
*
node
;
IDispatch
*
disp
;
VARIANT_BOOL
b
;
HRESULT
hr
;
DISPID
did
;
VARIANT
v
;
BSTR
name
;
ULONG
ret
;
...
...
@@ -10020,6 +10022,22 @@ static void test_selection(void)
EXPECT_HR
(
hr
,
S_OK
);
IXMLDOMSelection_Release
(
selection
);
/* collection disp id */
hr
=
IXMLDOMSelection_QueryInterface
(
selection
,
&
IID_IDispatchEx
,
(
void
**
)
&
dispex
);
EXPECT_HR
(
hr
,
S_OK
);
did
=
0
;
hr
=
IDispatchEx_GetDispID
(
dispex
,
_bstr_
(
"0"
),
0
,
&
did
);
EXPECT_HR
(
hr
,
S_OK
);
ok
(
did
==
DISPID_DOM_COLLECTION_BASE
,
"got %d
\n
"
,
did
);
len
=
0
;
hr
=
IXMLDOMSelection_get_length
(
selection
,
&
len
);
EXPECT_HR
(
hr
,
S_OK
);
ok
(
len
==
1
,
"got %d
\n
"
,
len
);
hr
=
IDispatchEx_GetDispID
(
dispex
,
_bstr_
(
"10"
),
0
,
&
did
);
EXPECT_HR
(
hr
,
S_OK
);
ok
(
did
==
DISPID_DOM_COLLECTION_BASE
+
10
,
"got %d
\n
"
,
did
);
IDispatchEx_Release
(
dispex
);
/* IEnumVARIANT tests */
enum1
=
NULL
;
hr
=
IXMLDOMSelection_QueryInterface
(
selection
,
&
IID_IEnumVARIANT
,
(
void
**
)
&
enum1
);
...
...
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