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
41aa3475
Commit
41aa3475
authored
Jul 08, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix xml declaration output when it's specified in loaded document (in case of file).
parent
46d08bb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
domdoc.c
dlls/msxml3/domdoc.c
+3
-1
No files found.
dlls/msxml3/domdoc.c
View file @
41aa3475
...
...
@@ -2403,6 +2403,8 @@ static HRESULT WINAPI domdoc_save(
case
VT_BSTR
:
case
VT_BSTR
|
VT_BYREF
:
{
int
options
=
get_doc
(
This
)
->
standalone
==
-
1
?
XML_SAVE_NO_DECL
:
0
;
/* save with file path */
HANDLE
handle
=
CreateFileW
(
(
V_VT
(
&
destination
)
&
VT_BYREF
)
?
*
V_BSTRREF
(
&
destination
)
:
V_BSTR
(
&
destination
),
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
...
...
@@ -2414,7 +2416,7 @@ static HRESULT WINAPI domdoc_save(
/* disable top XML declaration */
ctx
=
xmlSaveToIO
(
domdoc_save_writecallback
,
domdoc_save_closecallback
,
handle
,
NULL
,
XML_SAVE_NO_DECL
);
handle
,
NULL
,
options
);
if
(
!
ctx
)
{
CloseHandle
(
handle
);
...
...
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