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
ceb89792
Commit
ceb89792
authored
Aug 24, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Added custom queryresult DISPIDs implementation.
parent
eca8577d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
1 deletion
+40
-1
queryresult.c
dlls/msxml3/queryresult.c
+40
-1
No files found.
dlls/msxml3/queryresult.c
View file @
ceb89792
...
...
@@ -302,12 +302,51 @@ static const struct IXMLDOMNodeListVtbl queryresult_vtbl =
queryresult__newEnum
,
};
static
HRESULT
queryresult_get_dispid
(
IUnknown
*
iface
,
BSTR
name
,
DWORD
flags
,
DISPID
*
dispid
)
{
queryresult
*
This
=
impl_from_IXMLDOMNodeList
(
(
IXMLDOMNodeList
*
)
iface
);
WCHAR
*
ptr
;
DWORD
idx
=
0
;
for
(
ptr
=
name
;
*
ptr
&&
isdigitW
(
*
ptr
);
ptr
++
)
idx
=
idx
*
10
+
(
*
ptr
-
'0'
);
if
(
*
ptr
)
return
DISP_E_UNKNOWNNAME
;
if
(
idx
>=
xmlXPathNodeSetGetLength
(
This
->
result
->
nodesetval
))
return
DISP_E_UNKNOWNNAME
;
*
dispid
=
MSXML_DISPID_CUSTOM_MIN
+
idx
;
TRACE
(
"ret %x
\n
"
,
*
dispid
);
return
S_OK
;
}
static
HRESULT
queryresult_invoke
(
IUnknown
*
iface
,
DISPID
id
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
params
,
VARIANT
*
res
,
EXCEPINFO
*
ei
)
{
queryresult
*
This
=
impl_from_IXMLDOMNodeList
(
(
IXMLDOMNodeList
*
)
iface
);
if
(
flags
!=
DISPATCH_PROPERTYGET
)
{
FIXME
(
"flags %x
\n
"
,
flags
);
return
E_NOTIMPL
;
}
V_VT
(
res
)
=
VT_DISPATCH
;
V_DISPATCH
(
res
)
=
(
IDispatch
*
)
create_node
(
This
->
result
->
nodesetval
->
nodeTab
[
This
->
resultPos
]);
return
S_OK
;
}
static
const
dispex_static_data_vtbl_t
queryresult_dispex_vtbl
=
{
queryresult_get_dispid
,
queryresult_invoke
};
static
const
tid_t
queryresult_iface_tids
[]
=
{
IXMLDOMNodeList_tid
,
0
};
static
dispex_static_data_t
queryresult_dispex
=
{
NULL
,
&
queryresult_dispex_vtbl
,
IXMLDOMNodeList_tid
,
NULL
,
queryresult_iface_tids
...
...
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