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
fc825af3
Commit
fc825af3
authored
Jul 23, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Added support for more arguments in ISAXXMLReader_parse.
Parsing is not working when XMLDOMDocument is passed. It's because IXMLDOMDocument_get_xml returns incomplete data.
parent
194bae3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
6 deletions
+30
-6
saxreader.c
dlls/msxml3/saxreader.c
+30
-6
No files found.
dlls/msxml3/saxreader.c
View file @
fc825af3
...
...
@@ -1071,26 +1071,50 @@ static HRESULT WINAPI isaxxmlreader_parse(
case
VT_UNKNOWN
:
case
VT_DISPATCH
:
{
IPersistStream
*
persistStream
;
IStream
*
stream
;
IStream
*
stream
=
NULL
;
IXMLDOMDocument
*
xmlDoc
;
if
(
IUnknown_QueryInterface
(
V_UNKNOWN
(
&
varInput
),
&
IID_IPersistStream
,
(
void
**
)
&
persistStream
)
==
S_OK
)
{
hr
=
IPersistStream_Save
(
persistStream
,
stream
,
TRUE
);
IPersistStream_Release
(
persistStream
);
hr
=
E_NOTIMPL
;
break
;
if
(
hr
!=
S_OK
)
break
;
}
if
(
IUnknown_QueryInterface
(
V_UNKNOWN
(
&
varInput
),
&
IID_IStream
,
(
void
**
)
&
stream
)
==
S_OK
)
if
(
stream
||
IUnknown_QueryInterface
(
V_UNKNOWN
(
&
varInput
),
&
IID_IStream
,
(
void
**
)
&
stream
)
==
S_OK
)
{
STATSTG
dataInfo
;
ULONG
dataRead
;
while
(
1
)
{
hr
=
IStream_Stat
(
stream
,
&
dataInfo
,
STATFLAG_NONAME
);
if
(
hr
==
E_PENDING
)
continue
;
break
;
}
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dataInfo
.
cbSize
.
QuadPart
+
1
);
while
(
1
)
{
hr
=
IStream_Read
(
stream
,
data
,
dataInfo
.
cbSize
.
QuadPart
,
&
dataRead
);
if
(
hr
==
E_PENDING
)
continue
;
break
;
}
data
[
dataInfo
.
cbSize
.
QuadPart
]
=
'\0'
;
xmlSetupParserForBuffer
(
locator
->
pParserCtxt
,
data
,
NULL
);
IStream_Release
(
stream
);
hr
=
E_NOTIMPL
;
break
;
}
if
(
IUnknown_QueryInterface
(
V_UNKNOWN
(
&
varInput
),
&
IID_IXMLDOMDocument
,
(
void
**
)
&
xmlDoc
)
==
S_OK
)
{
BSTR
bstrData
;
IXMLDOMDocument_get_xml
(
xmlDoc
,
&
bstrData
);
data
=
xmlChar_from_wchar
(
bstrData
);
xmlSetupParserForBuffer
(
locator
->
pParserCtxt
,
data
,
NULL
);
IXMLDOMDocument_Release
(
xmlDoc
);
hr
=
E_NOTIMPL
;
break
;
...
...
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