Do not clear the pointer we just allocated, just the first byte it
points to.
This commit is contained in:
parent
34528b91a9
commit
2567881312
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue