Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9a3bfce9
Commit
9a3bfce9
authored
Oct 27, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Output error message for fatal errors.
parent
bd7787c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
saxreader.c
dlls/msxml3/saxreader.c
+10
-7
No files found.
dlls/msxml3/saxreader.c
View file @
9a3bfce9
...
...
@@ -1292,7 +1292,7 @@ static void libxmlFatalError(void *ctx, const char *msg, ...)
{
saxlocator
*
This
=
ctx
;
char
message
[
1024
];
WCHAR
*
wszE
rror
;
WCHAR
*
e
rror
;
DWORD
len
;
va_list
args
;
...
...
@@ -1311,22 +1311,25 @@ static void libxmlFatalError(void *ctx, const char *msg, ...)
va_end
(
args
);
len
=
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
message
,
-
1
,
NULL
,
0
);
wszError
=
heap_alloc
(
sizeof
(
WCHAR
)
*
len
);
if
(
wszError
)
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
message
,
-
1
,
wszError
,
len
);
error
=
heap_alloc
(
sizeof
(
WCHAR
)
*
len
);
if
(
error
)
{
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
message
,
-
1
,
error
,
len
);
TRACE
(
"fatal error for %p: %s
\n
"
,
This
,
debugstr_w
(
error
));
}
if
(
This
->
vbInterface
)
{
BSTR
bstrError
=
SysAllocString
(
wszE
rror
);
BSTR
bstrError
=
SysAllocString
(
e
rror
);
IVBSAXErrorHandler_fatalError
(
This
->
saxreader
->
vberrorHandler
,
(
IVBSAXLocator
*
)
&
This
->
lpVBSAXLocatorVtbl
,
&
bstrError
,
E_FAIL
);
SysFreeString
(
bstrError
);
}
else
ISAXErrorHandler_fatalError
(
This
->
saxreader
->
errorHandler
,
(
ISAXLocator
*
)
&
This
->
lpSAXLocatorVtbl
,
wszE
rror
,
E_FAIL
);
(
ISAXLocator
*
)
&
This
->
lpSAXLocatorVtbl
,
e
rror
,
E_FAIL
);
heap_free
(
wszE
rror
);
heap_free
(
e
rror
);
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