[PATCH 2/8] msxml3: Add error code definitions
Adam Martinson
amartinson at codeweavers.com
Thu Oct 28 20:12:55 CDT 2010
Only 4 are defined in the ild's, the rest are not part of the public API.
---
dlls/msxml3/msxml_private.h | 15 +++++++++++++++
dlls/msxml3/tests/domdoc.c | 4 ++--
include/msxml2.idl | 7 +++++++
3 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/dlls/msxml3/msxml_private.h b/dlls/msxml3/msxml_private.h
index 01d4824..e49629e 100644
--- a/dlls/msxml3/msxml_private.h
+++ b/dlls/msxml3/msxml_private.h
@@ -322,4 +322,19 @@ static inline LPWSTR heap_strdupW(LPCWSTR str)
return ret;
}
+/* Error Codes - not defined anywhere in the public headers */
+#define E_XML_ELEMENT_UNDECLARED 0xC00CE00DL
+#define E_XML_ELEMENT_ID_NOT_FOUND 0xC00CE00EL
+/* ... */
+#define E_XML_EMPTY_NOT_ALLOWED 0xC00CE011L
+#define E_XML_ELEMENT_NOT_COMPLETE 0xC00CE012L
+#define E_XML_ROOT_NAME_MISMATCH 0xC00CE013L
+#define E_XML_INVALID_CONTENT 0xC00CE014L
+#define E_XML_ATTRIBUTE_NOT_DEFINED 0xC00CE015L
+#define E_XML_ATTRIBUTE_FIXED 0xC00CE016L
+#define E_XML_ATTRIBUTE_VALUE 0xC00CE017L
+#define E_XML_ILLEGAL_TEXT 0xC00CE018L
+/* ... */
+#define E_XML_REQUIRED_ATTRIBUTE_MISSING 0xC00CE020L
+
#endif /* __MSXML_PRIVATE__ */
diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index 039d9cd..86779e0 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -3456,7 +3456,7 @@ static void test_IXMLDOMDocument2(void)
res = 0;
ole_check(IXMLDOMParseError_get_errorCode(err, &res));
/* XML_E_NOTWF */
- ok(res == 0xC00CE223, "got %08x\n", res);
+ ok(res == E_XML_NOTWF, "got %08x\n", res);
IXMLDOMParseError_Release(err);
}
@@ -3477,7 +3477,7 @@ static void test_IXMLDOMDocument2(void)
res = 0;
ole_check(IXMLDOMParseError_get_errorCode(err, &res));
/* XML_E_NODTD */
- todo_wine ok(res == 0xC00CE224, "got %08x\n", res);
+ todo_wine ok(res == E_XML_NODTD, "got %08x\n", res);
IXMLDOMParseError_Release(err);
}
diff --git a/include/msxml2.idl b/include/msxml2.idl
index da520d2..0acd970 100644
--- a/include/msxml2.idl
+++ b/include/msxml2.idl
@@ -2815,5 +2815,12 @@ coclass SAXAttributes40
interface ISAXAttributes;
};
+/*
+ * Error Codes
+ */
+cpp_quote("#define E_XML_NOTWF 0xC00CE223L")
+cpp_quote("#define E_XML_NODTD 0xC00CE224L")
+cpp_quote("#define E_XML_INVALID 0xC00CE225L")
+cpp_quote("#define E_XML_BUFFERTOOSMALL 0xC00CE226L")
} /* Library MSXML */
--
1.7.2.3
--------------080700030407000005040309--
More information about the wine-patches
mailing list