Nikolay Sivov : msxml3: Fix structured error callback implementation when no message data available .
Alexandre Julliard
julliard at winehq.org
Thu Feb 16 13:10:46 CST 2012
Module: wine
Branch: master
Commit: d73cfb92b3371602f18d32ad63237b8c75cabf2c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d73cfb92b3371602f18d32ad63237b8c75cabf2c
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Thu Feb 16 20:02:45 2012 +0300
msxml3: Fix structured error callback implementation when no message data available.
---
dlls/msxml3/main.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/msxml3/main.c b/dlls/msxml3/main.c
index e01d331..93b5b10 100644
--- a/dlls/msxml3/main.c
+++ b/dlls/msxml3/main.c
@@ -96,7 +96,12 @@ void wineXmlCallbackError(char const* caller, xmlErrorPtr err)
case XML_ERR_WARNING: dbcl = __WINE_DBCL_WARN; break;
default: dbcl = __WINE_DBCL_ERR; break;
}
- wine_dbg_log(dbcl, &__wine_dbch_msxml, caller, "%s", debugstr_a(err->message));
+
+ wine_dbg_log(dbcl, &__wine_dbch_msxml, caller, "error code %d", err->code);
+ if (err->message)
+ wine_dbg_log(dbcl, &__wine_dbch_msxml, caller, ": %s", err->message);
+ else
+ wine_dbg_log(dbcl, &__wine_dbch_msxml, caller, "\n");
}
/* Support for loading xml files from a Wine Windows drive */
More information about the wine-cvs
mailing list