From e02528e6295a71dde7f47bc84cb24a6e60a7b2a4 Mon Sep 17 00:00:00 2001 From: Jeremy White Date: Mon, 9 Feb 2009 13:01:57 -0600 Subject: [PATCH] twain_32: Prevent an incorrect test warning message on get checks. --- dlls/twain_32/tests/dsm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/twain_32/tests/dsm.c b/dlls/twain_32/tests/dsm.c index fe1e3a4f77..f42add99a6 100644 --- a/dlls/twain_32/tests/dsm.c +++ b/dlls/twain_32/tests/dsm.c @@ -104,10 +104,10 @@ static void check_get(TW_CAPABILITY *pCapability, TW_INT32 actual_support, p = GlobalLock(pCapability->hContainer); if (p) { - if (pCapability->ConType == TWON_ONEVALUE && actual_support & TWQC_GETCURRENT) + if (pCapability->ConType == TWON_ONEVALUE) { TW_ONEVALUE *onev = (TW_ONEVALUE *) p; - ok(onev->Item == orig_value, "MSG_GET of 0x%x returned 0x%x, expecting 0x%x\n", + ok(onev->Item == orig_value || !(actual_support & TWQC_GETCURRENT), "MSG_GET of 0x%x returned 0x%x, expecting 0x%x\n", pCapability->Cap, onev->Item, orig_value); } else if (pCapability->ConType == TWON_ENUMERATION) -- 2.32.0.93.g670b81a890