oleaut32/tests: Use FAILED instead of !SUCCEEDED.

Michael Stefaniuc mstefani at redhat.de
Sun Sep 25 16:31:20 CDT 2011


---
 dlls/oleaut32/tests/tmarshal.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/oleaut32/tests/tmarshal.c b/dlls/oleaut32/tests/tmarshal.c
index c2fa3b4..8161689 100644
--- a/dlls/oleaut32/tests/tmarshal.c
+++ b/dlls/oleaut32/tests/tmarshal.c
@@ -495,12 +495,12 @@ static HRESULT WINAPI Widget_VariantCArray(
     for (i = 0; i < count; i++) {
         VariantInit(&res);
         hr = VarAdd(&values[i], &inc, &res);
-        if (!SUCCEEDED(hr)) {
+        if (FAILED(hr)) {
             ok(0, "VarAdd failed at %u with error 0x%x\n", i, hr);
             return hr;
         }
         hr = VariantCopy(&values[i], &res);
-        if (!SUCCEEDED(hr)) {
+        if (FAILED(hr)) {
             ok(0, "VariantCopy failed at %u with error 0x%x\n", i, hr);
             return hr;
         }
-- 
1.7.6.2



More information about the wine-patches mailing list