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
8f9804ed
Commit
8f9804ed
authored
Oct 29, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Add a helper to check for error handler being set.
parent
843bd250
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
saxreader.c
dlls/msxml3/saxreader.c
+8
-4
No files found.
dlls/msxml3/saxreader.c
View file @
8f9804ed
...
...
@@ -132,6 +132,12 @@ static inline BOOL has_content_handler(const saxlocator *locator)
(
!
locator
->
vbInterface
&&
locator
->
saxreader
->
contentHandler
);
}
static
inline
BOOL
has_error_handler
(
const
saxlocator
*
locator
)
{
return
(
locator
->
vbInterface
&&
locator
->
saxreader
->
vberrorHandler
)
||
(
!
locator
->
vbInterface
&&
locator
->
saxreader
->
errorHandler
);
}
static
HRESULT
namespacePush
(
saxlocator
*
locator
,
int
ns
)
{
if
(
locator
->
nsStackLast
>=
locator
->
nsStackSize
)
...
...
@@ -202,8 +208,7 @@ static void format_error_message_from_id(saxlocator *This, HRESULT hr)
xmlStopParser
(
This
->
pParserCtxt
);
This
->
ret
=
hr
;
if
((
This
->
vbInterface
&&
This
->
saxreader
->
vberrorHandler
)
||
(
!
This
->
vbInterface
&&
This
->
saxreader
->
errorHandler
))
if
(
has_error_handler
(
This
))
{
WCHAR
msg
[
1024
];
if
(
!
FormatMessageW
(
FORMAT_MESSAGE_FROM_SYSTEM
,
...
...
@@ -1299,8 +1304,7 @@ static void libxmlFatalError(void *ctx, const char *msg, ...)
DWORD
len
;
va_list
args
;
if
((
This
->
vbInterface
&&
!
This
->
saxreader
->
vberrorHandler
)
||
(
!
This
->
vbInterface
&&
!
This
->
saxreader
->
errorHandler
))
if
(
!
has_error_handler
(
This
))
{
xmlStopParser
(
This
->
pParserCtxt
);
This
->
ret
=
E_FAIL
;
...
...
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