Commit a2e5b507 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

oleaut32/tests: Use FAILED instead of !SUCCEEDED.

parent 64f2dad5
...@@ -495,12 +495,12 @@ static HRESULT WINAPI Widget_VariantCArray( ...@@ -495,12 +495,12 @@ static HRESULT WINAPI Widget_VariantCArray(
for (i = 0; i < count; i++) { for (i = 0; i < count; i++) {
VariantInit(&res); VariantInit(&res);
hr = VarAdd(&values[i], &inc, &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); ok(0, "VarAdd failed at %u with error 0x%x\n", i, hr);
return hr; return hr;
} }
hr = VariantCopy(&values[i], &res); hr = VariantCopy(&values[i], &res);
if (!SUCCEEDED(hr)) { if (FAILED(hr)) {
ok(0, "VariantCopy failed at %u with error 0x%x\n", i, hr); ok(0, "VariantCopy failed at %u with error 0x%x\n", i, hr);
return hr; return hr;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment