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
ac83cb99
Commit
ac83cb99
authored
Oct 30, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xmllite: Store and return MultiLanguage reader property.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4b09e848
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
reader.c
dlls/xmllite/reader.c
+15
-2
No files found.
dlls/xmllite/reader.c
View file @
ac83cb99
...
...
@@ -244,6 +244,7 @@ typedef struct
XmlNodeType
nodetype
;
DtdProcessing
dtdmode
;
IXmlResolver
*
resolver
;
IUnknown
*
mlang
;
UINT
line
,
pos
;
/* reader position in XML stream */
struct
list
attrs
;
/* attributes list for current node */
struct
attribute
*
attr
;
/* current attribute */
...
...
@@ -2474,6 +2475,7 @@ static ULONG WINAPI xmlreader_Release(IXmlReader *iface)
IMalloc
*
imalloc
=
This
->
imalloc
;
if
(
This
->
input
)
IUnknown_Release
(
&
This
->
input
->
IXmlReaderInput_iface
);
if
(
This
->
resolver
)
IXmlResolver_Release
(
This
->
resolver
);
if
(
This
->
mlang
)
IUnknown_Release
(
This
->
mlang
);
reader_clear_attrs
(
This
);
reader_clear_elements
(
This
);
reader_free_strvalues
(
This
);
...
...
@@ -2558,6 +2560,11 @@ static HRESULT WINAPI xmlreader_GetProperty(IXmlReader* iface, UINT property, LO
switch
(
property
)
{
case
XmlReaderProperty_MultiLanguage
:
*
value
=
(
LONG_PTR
)
This
->
mlang
;
if
(
This
->
mlang
)
IUnknown_AddRef
(
This
->
mlang
);
break
;
case
XmlReaderProperty_XmlResolver
:
*
value
=
(
LONG_PTR
)
This
->
resolver
;
if
(
This
->
resolver
)
...
...
@@ -2586,8 +2593,13 @@ static HRESULT WINAPI xmlreader_SetProperty(IXmlReader* iface, UINT property, LO
switch
(
property
)
{
case
XmlReaderProperty_MultiLanguage
:
if
(
value
)
FIXME
(
"Ignoring MultiLanguage %lx
\n
"
,
value
);
if
(
This
->
mlang
)
IUnknown_Release
(
This
->
mlang
);
This
->
mlang
=
(
IUnknown
*
)
value
;
if
(
This
->
mlang
)
IUnknown_AddRef
(
This
->
mlang
);
if
(
This
->
mlang
)
FIXME
(
"Ignoring MultiLanguage %p
\n
"
,
This
->
mlang
);
break
;
case
XmlReaderProperty_XmlResolver
:
if
(
This
->
resolver
)
...
...
@@ -2996,6 +3008,7 @@ HRESULT WINAPI CreateXmlReader(REFIID riid, void **obj, IMalloc *imalloc)
reader
->
resumestate
=
XmlReadResumeState_Initial
;
reader
->
dtdmode
=
DtdProcessing_Prohibit
;
reader
->
resolver
=
NULL
;
reader
->
mlang
=
NULL
;
reader
->
line
=
reader
->
pos
=
0
;
reader
->
imalloc
=
imalloc
;
if
(
imalloc
)
IMalloc_AddRef
(
imalloc
);
...
...
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