Author: khornicek
Date: Thu Feb  2 19:48:38 2017
New Revision: 73670

URL: http://svn.reactos.org/svn/reactos?rev=73670&view=rev
Log:
[SETUPAPI]
- fix a mix up, caught by Mark

Modified:
    trunk/reactos/dll/win32/setupapi/devclass.c

Modified: trunk/reactos/dll/win32/setupapi/devclass.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/devclass.c?rev=73670&r1=73669&r2=73670&view=diff
==============================================================================
--- trunk/reactos/dll/win32/setupapi/devclass.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/devclass.c [iso-8859-1] Thu Feb  2 
19:48:38 2017
@@ -166,10 +166,10 @@
         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;


Reply via email to