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
d70b3e59
Commit
d70b3e59
authored
Nov 17, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix incorrect uses of va_list arguments.
parent
155877e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
20 deletions
+26
-20
main.c
dlls/msxml3/main.c
+24
-18
msxml_private.h
dlls/msxml3/msxml_private.h
+2
-2
No files found.
dlls/msxml3/main.c
View file @
d70b3e59
...
...
@@ -61,29 +61,35 @@ void wineXmlCallbackLog(char const* caller, xmlErrorLevel lvl, char const* msg,
break
;
}
if
(
ap
)
do
{
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
);
wine_dbg_log
(
dbcl
,
&
__wine_dbch_msxml
,
caller
,
buf
);
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
;
}
else
while
(
needed
);
wine_dbg_log
(
dbcl
,
&
__wine_dbch_msxml
,
caller
,
"%s"
,
buf
);
heap_free
(
buf
);
}
void
wineXmlCallbackError
(
char
const
*
caller
,
xmlErrorPtr
err
)
{
enum
__wine_debug_class
dbcl
;
switch
(
err
->
level
)
{
wine_dbg_log
(
dbcl
,
&
__wine_dbch_msxml
,
caller
,
msg
);
case
XML_ERR_NONE
:
dbcl
=
__WINE_DBCL_TRACE
;
break
;
case
XML_ERR_WARNING
:
dbcl
=
__WINE_DBCL_WARN
;
break
;
default:
dbcl
=
__WINE_DBCL_ERR
;
break
;
}
wine_dbg_log
(
dbcl
,
&
__wine_dbch_msxml
,
caller
,
"%s"
,
err
->
message
);
}
/* Support for loading xml files from a Wine Windows drive */
...
...
dlls/msxml3/msxml_private.h
View file @
d70b3e59
...
...
@@ -209,6 +209,7 @@ extern xmlNodePtr xmldoc_unlink_xmldecl(xmlDocPtr doc);
extern
HRESULT
XMLElement_create
(
IUnknown
*
pUnkOuter
,
xmlNodePtr
node
,
LPVOID
*
ppObj
,
BOOL
own
);
extern
void
wineXmlCallbackLog
(
char
const
*
caller
,
xmlErrorLevel
lvl
,
char
const
*
msg
,
va_list
ap
);
extern
void
wineXmlCallbackError
(
char
const
*
caller
,
xmlErrorPtr
err
);
#define LIBXML2_LOG_CALLBACK __WINE_PRINTF_ATTR(2,3)
...
...
@@ -221,8 +222,7 @@ extern void wineXmlCallbackLog(char const* caller, xmlErrorLevel lvl, char const
#define LIBXML2_CALLBACK_ERR(caller, msg, ap) \
wineXmlCallbackLog(#caller, XML_ERR_ERROR, msg, ap)
#define LIBXML2_CALLBACK_SERROR(caller, err) \
wineXmlCallbackLog(#caller, err->level, err->message, NULL)
#define LIBXML2_CALLBACK_SERROR(caller, err) wineXmlCallbackError(#caller, err)
extern
BOOL
is_preserving_whitespace
(
xmlNodePtr
node
);
...
...
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