>From 40921235b3bb0cc65ca9e4d30f13bda11d70732b Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov@codeweavers.com>
Date: Thu, 16 Feb 2012 20:02:45 +0300
Subject: [PATCH 2/2] 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 */
-- 
1.5.6.5


