diff --git a/dlls/setupapi/queue.c b/dlls/setupapi/queue.c index d57f8e1b310..d2e2a1d9d5e 100644 --- a/dlls/setupapi/queue.c +++ b/dlls/setupapi/queue.c @@ -126,11 +126,9 @@ static void concat_W( WCHAR *buffer, const WCHAR *src1, const WCHAR *src2, const if (buffer[-1] != '\\') *buffer++ = '\\'; if (src3) while (*src3 == '\\') src3++; } + if (src3) - { strcpyW( buffer, src3 ); - buffer += strlenW(buffer ); - } }