wbemprox: Copy correct substring to *namespace in parse_resource().

Signed-off-by: Paul Gofman <pgofman@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2021-09-13 17:13:25 +03:00 committed by Alexandre Julliard
parent 613044fab7
commit 1ba57ce5ad
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ static HRESULT parse_resource( const WCHAR *resource, WCHAR **server, WCHAR **na
if (!(*namespace = heap_alloc( (len + 1) * sizeof(WCHAR) ))) hr = E_OUTOFMEMORY;
else
{
memcpy( *namespace, p, len * sizeof(WCHAR) );
memcpy( *namespace, q, len * sizeof(WCHAR) );
(*namespace)[len] = 0;
hr = S_OK;
}