Paul Vriens : setupapi/tests: Fix a test on NT4.

Alexandre Julliard julliard at winehq.org
Mon Jun 23 16:03:47 CDT 2008


Module: wine
Branch: master
Commit: 4fe5683ce43fe5a90642087b6a01efef67bbc164
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4fe5683ce43fe5a90642087b6a01efef67bbc164

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Mon Jun 23 17:47:49 2008 +0200

setupapi/tests: Fix a test on NT4.

---

 dlls/setupapi/tests/devinst.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/setupapi/tests/devinst.c b/dlls/setupapi/tests/devinst.c
index 2dbfdcc..8fcff08 100644
--- a/dlls/setupapi/tests/devinst.c
+++ b/dlls/setupapi/tests/devinst.c
@@ -602,7 +602,8 @@ static void testGetDeviceInstanceId(void)
         ret = pSetupDiGetDeviceInstanceIdA(set, &devInfo, instanceID,
          sizeof(instanceID), NULL);
         ok(ret, "SetupDiGetDeviceInstanceIdA failed: %08x\n", GetLastError());
-        ok(!lstrcmpA(instanceID, "ROOT\\LEGACY_BOGUS\\0001"),
+        /* NT4 returns 'Root' and W2K and above 'ROOT' */
+        ok(!lstrcmpiA(instanceID, "ROOT\\LEGACY_BOGUS\\0001"),
          "Unexpected instance ID %s\n", instanceID);
         pSetupDiDestroyDeviceInfoList(set);
     }




More information about the wine-cvs mailing list