[SETUPAPI]
authorKamil Hornicek <kamil.hornicek@reactos.org>
Thu, 2 Feb 2017 19:48:38 +0000 (19:48 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Thu, 2 Feb 2017 19:48:38 +0000 (19:48 +0000)
- fix a mix up, caught by Mark

svn path=/trunk/; revision=73670

reactos/dll/win32/setupapi/devclass.c

index 563d036..7b5c024 100644 (file)
@@ -166,10 +166,10 @@ SETUP_CreateDevicesListFromEnumerator(
         if (rc != ERROR_SUCCESS)
             goto cleanup;
 
-        if (FAILED(StringCbCopyW(InstancePath, _countof(InstancePath), Enumerator)) ||
-            FAILED(StringCbCatW(InstancePath, _countof(InstancePath), BackSlash))  ||
-            FAILED(StringCbCatW(InstancePath, _countof(InstancePath), KeyBuffer))  ||
-            FAILED(StringCbCatW(InstancePath, _countof(InstancePath), BackSlash)))
+        if (FAILED(StringCchCopyW(InstancePath, _countof(InstancePath), Enumerator)) ||
+            FAILED(StringCchCatW(InstancePath, _countof(InstancePath), BackSlash))  ||
+            FAILED(StringCchCatW(InstancePath, _countof(InstancePath), KeyBuffer))  ||
+            FAILED(StringCchCatW(InstancePath, _countof(InstancePath), BackSlash)))
         {
             rc = ERROR_GEN_FAILURE;
             goto cleanup;