[SETUPAPI]

- fix a mix up, caught by Mark

svn path=/trunk/; revision=73670
This commit is contained in:
Kamil Hornicek 2017-02-02 19:48:38 +00:00
parent 49f2678311
commit 747a21c72e

View file

@ -166,10 +166,10 @@ SETUP_CreateDevicesListFromEnumerator(
if (rc != ERROR_SUCCESS) if (rc != ERROR_SUCCESS)
goto cleanup; goto cleanup;
if (FAILED(StringCbCopyW(InstancePath, _countof(InstancePath), Enumerator)) || if (FAILED(StringCchCopyW(InstancePath, _countof(InstancePath), Enumerator)) ||
FAILED(StringCbCatW(InstancePath, _countof(InstancePath), BackSlash)) || FAILED(StringCchCatW(InstancePath, _countof(InstancePath), BackSlash)) ||
FAILED(StringCbCatW(InstancePath, _countof(InstancePath), KeyBuffer)) || FAILED(StringCchCatW(InstancePath, _countof(InstancePath), KeyBuffer)) ||
FAILED(StringCbCatW(InstancePath, _countof(InstancePath), BackSlash))) FAILED(StringCchCatW(InstancePath, _countof(InstancePath), BackSlash)))
{ {
rc = ERROR_GEN_FAILURE; rc = ERROR_GEN_FAILURE;
goto cleanup; goto cleanup;