Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
1dab6112
Commit
1dab6112
authored
Feb 16, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Use static buffer when tracing libxml2 error messages.
parent
e7cd6802
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
18 deletions
+9
-18
main.c
dlls/msxml3/main.c
+9
-18
No files found.
dlls/msxml3/main.c
View file @
1dab6112
...
...
@@ -62,9 +62,11 @@ HINSTANCE MSXML_hInstance = NULL;
void
wineXmlCallbackLog
(
char
const
*
caller
,
xmlErrorLevel
lvl
,
char
const
*
msg
,
va_list
ap
)
{
char
*
buf
=
NULL
;
int
len
=
32
,
needed
;
enum
__wine_debug_class
dbcl
=
__WINE_DBCL_ERR
;
static
const
int
max_size
=
200
;
enum
__wine_debug_class
dbcl
;
char
buff
[
max_size
];
int
len
;
switch
(
lvl
)
{
case
XML_ERR_NONE
:
...
...
@@ -74,25 +76,14 @@ void wineXmlCallbackLog(char const* caller, xmlErrorLevel lvl, char const* msg,
dbcl
=
__WINE_DBCL_WARN
;
break
;
default:
dbcl
=
__WINE_DBCL_ERR
;
break
;
}
do
{
heap_free
(
buf
);
buf
=
heap_alloc
(
len
);
needed
=
vsnprintf
(
buf
,
len
,
msg
,
ap
);
if
(
needed
==
-
1
)
len
*=
2
;
else
if
(
needed
>=
len
)
len
=
needed
+
1
;
else
needed
=
0
;
}
while
(
needed
);
len
=
vsnprintf
(
buff
,
max_size
,
msg
,
ap
);
if
(
len
==
-
1
||
len
>=
max_size
)
buff
[
max_size
-
1
]
=
0
;
wine_dbg_log
(
dbcl
,
&
__wine_dbch_msxml
,
caller
,
"%s"
,
buf
);
heap_free
(
buf
);
wine_dbg_log
(
dbcl
,
&
__wine_dbch_msxml
,
caller
,
"%s"
,
buff
);
}
void
wineXmlCallbackError
(
char
const
*
caller
,
xmlErrorPtr
err
)
...
...
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