From 747a21c72e3aa2f0a414b03f9051288b40081fbf Mon Sep 17 00:00:00 2001 From: Kamil Hornicek Date: Thu, 2 Feb 2017 19:48:38 +0000 Subject: [PATCH] [SETUPAPI] - fix a mix up, caught by Mark svn path=/trunk/; revision=73670 --- reactos/dll/win32/setupapi/devclass.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/dll/win32/setupapi/devclass.c b/reactos/dll/win32/setupapi/devclass.c index 563d036d9a5..7b5c024ac69 100644 --- a/reactos/dll/win32/setupapi/devclass.c +++ b/reactos/dll/win32/setupapi/devclass.c @@ -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;