[PATCH] msxml3: return S_FALSE from IXMLDOMNamedNodeMap::nextNode() when there are no attributes
20 Jun
2021
20 Jun
'21
4:08 p.m.
Currently Wine return S_FALSE when IXMLDOMNamedNodeMap::nextNode() has run out of attributes to return, but when an XML node has no attributes at all, it returns S_OK despite setting the nextNode output parameter to NULL, causing the caller to crash when it accesses this pointer. Return S_FALSE in this case instead. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50603 Signed-off-by: Damjan Jovanovic <damjan.jov(a)gmail.com> --- dlls/msxml3/element.c | 2 ++ dlls/msxml3/tests/domdoc.c | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+)
1642
Age (days ago)
1644
Last active (days ago)
1 comments
2 participants
participants (2)
-
Damjan Jovanovic -
Nikolay Sivov