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
81ffe043
Commit
81ffe043
authored
Mar 14, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Use characters callback helper in one more place.
parent
7993bd3d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
20 deletions
+16
-20
saxreader.c
dlls/msxml3/saxreader.c
+16
-20
No files found.
dlls/msxml3/saxreader.c
View file @
81ffe043
...
...
@@ -349,6 +349,21 @@ static inline int saxreader_has_handler(const saxlocator *locator, enum saxhandl
return
(
locator
->
vbInterface
&&
iface
->
vbhandler
)
||
(
!
locator
->
vbInterface
&&
iface
->
handler
);
}
static
HRESULT
saxreader_saxcharacters
(
saxlocator
*
locator
,
BSTR
chars
)
{
struct
saxcontenthandler_iface
*
content
=
saxreader_get_contenthandler
(
locator
->
saxreader
);
HRESULT
hr
;
if
(
!
saxreader_has_handler
(
locator
,
SAXContentHandler
))
return
S_OK
;
if
(
locator
->
vbInterface
)
hr
=
IVBSAXContentHandler_characters
(
content
->
vbhandler
,
&
chars
);
else
hr
=
ISAXContentHandler_characters
(
content
->
handler
,
chars
,
SysStringLen
(
chars
));
return
hr
;
}
/* property names */
static
const
WCHAR
PropertyCharsetW
[]
=
{
'c'
,
'h'
,
'a'
,
'r'
,
's'
,
'e'
,
't'
,
0
...
...
@@ -1565,7 +1580,6 @@ static void libxmlCharacters(
int
len
)
{
saxlocator
*
This
=
ctx
;
struct
saxcontenthandler_iface
*
handler
=
saxreader_get_contenthandler
(
This
->
saxreader
);
BSTR
Chars
;
HRESULT
hr
;
xmlChar
*
cur
,
*
end
;
...
...
@@ -1624,10 +1638,7 @@ static void libxmlCharacters(
}
Chars
=
pooled_bstr_from_xmlCharN
(
&
This
->
saxreader
->
pool
,
cur
,
end
-
cur
);
if
(
This
->
vbInterface
)
hr
=
IVBSAXContentHandler_characters
(
handler
->
vbhandler
,
&
Chars
);
else
hr
=
ISAXContentHandler_characters
(
handler
->
handler
,
Chars
,
SysStringLen
(
Chars
));
hr
=
saxreader_saxcharacters
(
This
,
Chars
);
if
(
sax_callback_failed
(
This
,
hr
))
{
...
...
@@ -1799,21 +1810,6 @@ static BSTR saxreader_get_cdata_chunk(const xmlChar *str, int len)
return
ret
;
}
static
HRESULT
saxreader_saxcharacters
(
saxlocator
*
locator
,
BSTR
chars
)
{
struct
saxcontenthandler_iface
*
content
=
saxreader_get_contenthandler
(
locator
->
saxreader
);
HRESULT
hr
;
if
(
!
saxreader_has_handler
(
locator
,
SAXContentHandler
))
return
S_OK
;
if
(
locator
->
vbInterface
)
hr
=
IVBSAXContentHandler_characters
(
content
->
vbhandler
,
&
chars
);
else
hr
=
ISAXContentHandler_characters
(
content
->
handler
,
chars
,
SysStringLen
(
chars
));
return
hr
;
}
static
void
libxml_cdatablock
(
void
*
ctx
,
const
xmlChar
*
value
,
int
len
)
{
const
xmlChar
*
start
,
*
end
;
...
...
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