msxml3: Use SUCCEEDED instead of !FAILED.
Michael Stefaniuc
mstefani at redhat.de
Sat Oct 1 13:31:34 CDT 2011
---
Strange error handling here as only SUCCEEDED but not S_OK is an error.
dlls/msxml3/domdoc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c
index d4fcc1c..2eedc78 100644
--- a/dlls/msxml3/domdoc.c
+++ b/dlls/msxml3/domdoc.c
@@ -2760,7 +2760,7 @@ static HRESULT WINAPI domdoc_validateNode(
{
hr = SchemaCache_validate_tree(This->properties->schemaCache, get_node_obj(node)->node);
- if (!FAILED(hr))
+ if (SUCCEEDED(hr))
{
++validated;
/* TODO: get a real error code here */
--
1.7.4.4
More information about the wine-patches
mailing list