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
a469d37e
Commit
a469d37e
authored
Sep 14, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmllite/writer: Simplify setting default output encoding.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2564862b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
writer.c
dlls/xmllite/writer.c
+1
-2
No files found.
dlls/xmllite/writer.c
View file @
a469d37e
...
...
@@ -1846,7 +1846,6 @@ static HRESULT create_writer_output(IUnknown *stream, IMalloc *imalloc, xml_enco
HRESULT
WINAPI
CreateXmlWriterOutputWithEncodingName
(
IUnknown
*
stream
,
IMalloc
*
imalloc
,
const
WCHAR
*
encoding
,
IXmlWriterOutput
**
out
)
{
static
const
WCHAR
utf8W
[]
=
{
'U'
,
'T'
,
'F'
,
'-'
,
'8'
,
0
};
xmlwriteroutput
*
output
;
xml_encoding
xml_enc
;
HRESULT
hr
;
...
...
@@ -1858,7 +1857,7 @@ HRESULT WINAPI CreateXmlWriterOutputWithEncodingName(IUnknown *stream, IMalloc *
*
out
=
NULL
;
xml_enc
=
parse_encoding_name
(
encoding
?
encoding
:
utf8W
,
-
1
)
;
xml_enc
=
encoding
?
parse_encoding_name
(
encoding
,
-
1
)
:
XmlEncoding_UTF8
;
if
(
SUCCEEDED
(
hr
=
create_writer_output
(
stream
,
imalloc
,
xml_enc
,
encoding
,
&
output
)))
*
out
=
&
output
->
IXmlWriterOutput_iface
;
...
...
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