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
db9d8ebb
Commit
db9d8ebb
authored
Nov 26, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Support ISequentialStream as a document load source.
parent
b296b08a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
35 deletions
+23
-35
domdoc.c
dlls/msxml3/domdoc.c
+23
-35
No files found.
dlls/msxml3/domdoc.c
View file @
db9d8ebb
...
...
@@ -2037,8 +2037,6 @@ static HRESULT WINAPI domdoc_load(
domdoc
*
This
=
impl_from_IXMLDOMDocument3
(
iface
);
LPWSTR
filename
=
NULL
;
HRESULT
hr
=
S_FALSE
;
IXMLDOMDocument3
*
pNewDoc
=
NULL
;
IStream
*
pStream
=
NULL
;
xmlDocPtr
xmldoc
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_variant
(
&
source
));
...
...
@@ -2104,13 +2102,18 @@ static HRESULT WINAPI domdoc_load(
}
break
;
case
VT_UNKNOWN
:
{
ISequentialStream
*
stream
=
NULL
;
IXMLDOMDocument3
*
newdoc
=
NULL
;
if
(
!
V_UNKNOWN
(
&
source
))
return
E_INVALIDARG
;
hr
=
IUnknown_QueryInterface
(
V_UNKNOWN
(
&
source
),
&
IID_IXMLDOMDocument3
,
(
void
**
)
&
pNewDoc
);
hr
=
IUnknown_QueryInterface
(
V_UNKNOWN
(
&
source
),
&
IID_IXMLDOMDocument3
,
(
void
**
)
&
newdoc
);
if
(
hr
==
S_OK
)
{
if
(
pNewD
oc
)
if
(
newd
oc
)
{
domdoc
*
newDoc
=
impl_from_IXMLDOMDocument3
(
pNewD
oc
);
domdoc
*
newDoc
=
impl_from_IXMLDOMDocument3
(
newd
oc
);
xmldoc
=
xmlCopyDoc
(
get_doc
(
newDoc
),
1
);
xmldoc
->
_private
=
create_priv
();
...
...
@@ -2122,40 +2125,25 @@ static HRESULT WINAPI domdoc_load(
return
hr
;
}
}
hr
=
IUnknown_QueryInterface
(
V_UNKNOWN
(
&
source
),
&
IID_IStream
,
(
void
**
)
&
pStream
);
if
(
hr
==
S_OK
)
{
IPersistStream
*
pDocStream
;
hr
=
IXMLDOMDocument3_QueryInterface
(
iface
,
&
IID_IPersistStream
,
(
void
**
)
&
pDocStream
);
if
(
hr
==
S_OK
)
{
hr
=
IPersistStream_Load
(
pDocStream
,
pStream
);
IStream_Release
(
pStream
);
if
(
hr
==
S_OK
)
{
*
isSuccessful
=
VARIANT_TRUE
;
TRACE
(
"Using IStream to load Document
\n
"
);
return
S_OK
;
}
else
{
ERR
(
"xmldoc_IPersistStream_Load failed (%d)
\n
"
,
hr
);
}
}
else
{
ERR
(
"QueryInterface IID_IPersistStream failed (%d)
\n
"
,
hr
);
}
}
else
hr
=
IUnknown_QueryInterface
(
V_UNKNOWN
(
&
source
),
&
IID_IStream
,
(
void
**
)
&
stream
);
if
(
FAILED
(
hr
))
hr
=
IUnknown_QueryInterface
(
V_UNKNOWN
(
&
source
),
&
IID_ISequentialStream
,
(
void
**
)
&
stream
);
if
(
hr
==
S_OK
)
{
/* ISequentialStream */
FIXME
(
"Unknown type not supported (0x%08x) (%p)(%p)
\n
"
,
hr
,
pNewDoc
,
V_UNKNOWN
(
&
source
)
->
lpVtbl
);
hr
=
domdoc_load_from_stream
(
This
,
stream
);
if
(
hr
==
S_OK
)
*
isSuccessful
=
VARIANT_TRUE
;
ISequentialStream_Release
(
stream
);
return
hr
;
}
FIXME
(
"unsupported IUnknown type (0x%08x) (%p)
\n
"
,
hr
,
V_UNKNOWN
(
&
source
)
->
lpVtbl
);
break
;
default:
FIXME
(
"VT type not supported (%d)
\n
"
,
V_VT
(
&
source
));
}
default:
FIXME
(
"VT type not supported (%d)
\n
"
,
V_VT
(
&
source
));
}
if
(
filename
)
...
...
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