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
f3ab228a
Commit
f3ab228a
authored
Aug 20, 2008
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix checking if ContentHandler was set.
parent
03f79097
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
saxreader.c
dlls/msxml3/saxreader.c
+14
-8
No files found.
dlls/msxml3/saxreader.c
View file @
f3ab228a
...
...
@@ -908,7 +908,8 @@ static void libxmlStartDocument(void *ctx)
saxlocator
*
This
=
ctx
;
HRESULT
hr
;
if
(
This
->
saxreader
->
contentHandler
)
if
((
This
->
vbInterface
&&
This
->
saxreader
->
vbcontentHandler
)
||
(
!
This
->
vbInterface
&&
This
->
saxreader
->
contentHandler
))
{
if
(
This
->
vbInterface
)
hr
=
IVBSAXContentHandler_startDocument
(
This
->
saxreader
->
vbcontentHandler
);
...
...
@@ -932,7 +933,8 @@ static void libxmlEndDocument(void *ctx)
if
(
This
->
ret
!=
S_OK
)
return
;
if
(
This
->
saxreader
->
contentHandler
)
if
((
This
->
vbInterface
&&
This
->
saxreader
->
vbcontentHandler
)
||
(
!
This
->
vbInterface
&&
This
->
saxreader
->
contentHandler
))
{
if
(
This
->
vbInterface
)
hr
=
IVBSAXContentHandler_endDocument
(
This
->
saxreader
->
vbcontentHandler
);
...
...
@@ -964,8 +966,8 @@ static void libxmlStartElementNS(
update_position
(
This
,
(
xmlChar
*
)
This
->
pParserCtxt
->
input
->
cur
+
1
);
hr
=
namespacePush
(
This
,
nb_namespaces
);
if
(
hr
==
S_OK
&&
This
->
saxreader
->
contentHandler
)
if
(
hr
==
S_OK
&&
((
This
->
vbInterface
&&
This
->
saxreader
->
vbcontentHandler
)
||
(
!
This
->
vbInterface
&&
This
->
saxreader
->
contentHandler
))
)
{
for
(
index
=
0
;
index
<
nb_namespaces
;
index
++
)
{
...
...
@@ -1042,7 +1044,8 @@ static void libxmlEndElementNS(
nsNr
=
namespacePop
(
This
);
if
(
This
->
saxreader
->
contentHandler
)
if
((
This
->
vbInterface
&&
This
->
saxreader
->
vbcontentHandler
)
||
(
!
This
->
vbInterface
&&
This
->
saxreader
->
contentHandler
))
{
NamespaceUri
=
bstr_from_xmlChar
(
URI
);
LocalName
=
bstr_from_xmlChar
(
localname
);
...
...
@@ -1120,7 +1123,8 @@ static void libxmlCharacters(
lineCopy
=
This
->
line
;
end
=
This
->
lastCur
;
if
(
This
->
saxreader
->
contentHandler
)
if
((
This
->
vbInterface
&&
This
->
saxreader
->
vbcontentHandler
)
||
(
!
This
->
vbInterface
&&
This
->
saxreader
->
contentHandler
))
{
while
(
This
->
lastCur
<
chEnd
)
{
...
...
@@ -1645,7 +1649,8 @@ static HRESULT WINAPI internal_getContentHandler(
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pContentHandler
);
if
(
pContentHandler
==
NULL
)
return
E_POINTER
;
if
(
This
->
contentHandler
)
if
((
vbInterface
&&
This
->
vbcontentHandler
)
||
(
!
vbInterface
&&
This
->
contentHandler
))
{
if
(
vbInterface
)
IVBSAXContentHandler_AddRef
(
This
->
vbcontentHandler
);
...
...
@@ -1672,7 +1677,8 @@ static HRESULT WINAPI internal_putContentHandler(
else
ISAXContentHandler_AddRef
((
ISAXContentHandler
*
)
contentHandler
);
}
if
(
This
->
contentHandler
)
if
((
vbInterface
&&
This
->
vbcontentHandler
)
||
(
!
vbInterface
&&
This
->
contentHandler
))
{
if
(
vbInterface
)
IVBSAXContentHandler_Release
(
This
->
vbcontentHandler
);
...
...
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