Do not clear the pointer we just allocated, just the first byte it

points to.
This commit is contained in:
Marcus Meissner 2003-12-15 19:47:10 +00:00 committed by Alexandre Julliard
parent 34528b91a9
commit 2567881312
1 changed files with 1 additions and 1 deletions

View File

@ -5672,7 +5672,7 @@ HRESULT WINAPI VarBstrCat(BSTR pbstrLeft, BSTR pbstrRight, BSTR *pbstrOut)
if (!*pbstrOut)
return E_OUTOFMEMORY;
*pbstrOut = '\0';
(*pbstrOut)[0] = '\0';
if (pbstrLeft)
strcpyW(*pbstrOut, pbstrLeft);