>From baab5e75d8b43346e490ea7d2ee023e3606671e4 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov@codeweavers.com>
Date: Thu, 16 Feb 2012 16:20:00 +0300
Subject: [PATCH 2/2] Fix structured error callback implementation when no message data available

---
 dlls/msxml3/main.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/msxml3/main.c b/dlls/msxml3/main.c
index f8727f0..4e47c6a 100644
--- a/dlls/msxml3/main.c
+++ b/dlls/msxml3/main.c
@@ -97,7 +97,11 @@ void libxml2_structured_error(const char* caller, xmlErrorPtr err)
     default:              dbcl = __WINE_DBCL_ERR; break;
     }
 
-    wine_dbg_log(dbcl, &__wine_dbch_msxml, caller, "%s", 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


