ole32/tests: Simplify ok() check (PVS-Studio)
Michael Stefaniuc
mstefani at redhat.de
Fri Nov 28 07:16:29 CST 2014
---
dlls/ole32/tests/propvariant.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ole32/tests/propvariant.c b/dlls/ole32/tests/propvariant.c
index 1c9c447..9052aa5 100644
--- a/dlls/ole32/tests/propvariant.c
+++ b/dlls/ole32/tests/propvariant.c
@@ -158,7 +158,7 @@ static void expect(HRESULT hr, VARTYPE vt, BOOL copy)
}
if(flags == PROP_INV)
- ok(hr == copy ? DISP_E_BADVARTYPE : STG_E_INVALIDPARAMETER, "%s (%s): got %08x\n", wine_vtypes[idx], modifier, hr);
+ ok(hr == STG_E_INVALIDPARAMETER, "%s (%s): got %08x\n", wine_vtypes[idx], modifier, hr);
else if(flags == PROP_V0)
ok(hr == S_OK, "%s (%s): got %08x\n", wine_vtypes[idx], modifier, hr);
else if(flags & PROP_TODO)
--
1.9.3
More information about the wine-patches
mailing list