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
6f2f577f
Commit
6f2f577f
authored
Mar 15, 2013
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Mar 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Implment IXMLParser SetInput.
parent
6ab04040
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
xmlparser.c
dlls/msxml3/tests/xmlparser.c
+3
-0
xmlparser.c
dlls/msxml3/xmlparser.c
+16
-2
No files found.
dlls/msxml3/tests/xmlparser.c
View file @
6f2f577f
...
...
@@ -135,6 +135,9 @@ static void create_test(void)
ok
(
hr
==
S_OK
,
"Expected S_OK got 0x%08x
\n
"
,
hr
);
ok
(
nodefactory
==
&
thenodefactory
,
"expected NULL
\n
"
);
hr
=
IXMLParser_SetInput
(
parser
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"Expected S_OK got 0x%08x
\n
"
,
hr
);
hr
=
IXMLParser_SetFactory
(
parser
,
NULL
);
ok
(
hr
==
S_OK
,
"Expected S_OK got 0x%08x
\n
"
,
hr
);
...
...
dlls/msxml3/xmlparser.c
View file @
6f2f577f
...
...
@@ -47,6 +47,7 @@ typedef struct _xmlparser
{
IXMLParser
IXMLParser_iface
;
IXMLNodeFactory
*
nodefactory
;
IUnknown
*
input
;
LONG
ref
;
int
flags
;
...
...
@@ -96,6 +97,9 @@ static ULONG WINAPI xmlparser_Release(IXMLParser* iface)
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
ref
);
if
(
ref
==
0
)
{
if
(
This
->
input
)
IUnknown_Release
(
This
->
input
);
if
(
This
->
nodefactory
)
IXMLNodeFactory_Release
(
This
->
nodefactory
);
...
...
@@ -246,9 +250,18 @@ static HRESULT WINAPI xmlparser_SetInput(IXMLParser *iface, IUnknown *pStm)
{
xmlparser
*
This
=
impl_from_IXMLParser
(
iface
);
FIXM
E
(
"(%p %p)
\n
"
,
This
,
pStm
);
TRAC
E
(
"(%p %p)
\n
"
,
This
,
pStm
);
return
E_NOTIMPL
;
if
(
!
pStm
)
return
E_INVALIDARG
;
if
(
This
->
input
)
IUnknown_Release
(
This
->
input
);
This
->
input
=
pStm
;
IUnknown_AddRef
(
This
->
input
);
return
S_OK
;
}
static
HRESULT
WINAPI
xmlparser_PushData
(
IXMLParser
*
iface
,
const
char
*
pData
,
...
...
@@ -435,6 +448,7 @@ HRESULT XMLParser_create(IUnknown* pUnkOuter, void**ppObj)
This
->
IXMLParser_iface
.
lpVtbl
=
&
xmlparser_vtbl
;
This
->
nodefactory
=
NULL
;
This
->
input
=
NULL
;
This
->
flags
=
0
;
This
->
ref
=
1
;
...
...
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