[PATCH] mmdevapi/tests: Fix failure on Vista

Andrew Eikum aeikum at codeweavers.com
Fri Aug 26 11:44:27 CDT 2016


Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
---

Failure introduced by ba858c28fd. Interesting that this property can
be queried directly, but it doesn't turn up when iterating through all
of the properties in the propstore.

 dlls/mmdevapi/tests/propstore.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/mmdevapi/tests/propstore.c b/dlls/mmdevapi/tests/propstore.c
index 6447113..02340ba 100644
--- a/dlls/mmdevapi/tests/propstore.c
+++ b/dlls/mmdevapi/tests/propstore.c
@@ -118,7 +118,8 @@ static void test_getat(IPropertyStore *store)
 	if (IsEqualPropertyKey(pkey, DEVPKEY_Device_DeviceDesc))
 	    found_desc = TRUE;
     }
-    ok(found_name, "DEVPKEY_Device_FriendlyName not found\n");
+    ok(found_name ||
+            broken(!found_name) /* vista */, "DEVPKEY_Device_FriendlyName not found\n");
     ok(found_desc, "DEVPKEY_Device_DeviceDesc not found\n");
 }
 
-- 
2.9.3




More information about the wine-patches mailing list