oleaut32: Remove deadcode in SafeArrayPutElement.

Remove deadcode in SafeArrayPutElement, as lpBstr cannot be NULL
because of the check at the top of the function on pvData (found by
Coverity).
This commit is contained in:
Robert Shearman 2006-04-07 11:17:29 +01:00 committed by Alexandre Julliard
parent 7a3df4d097
commit f74dfe3182
1 changed files with 3 additions and 8 deletions

View File

@ -894,14 +894,9 @@ HRESULT WINAPI SafeArrayPutElement(SAFEARRAY *psa, LONG *rgIndices, void *pvData
if (*lpDest)
SysFreeString(*lpDest);
if (lpBstr)
{
*lpDest = SysAllocStringByteLen((char*)lpBstr, SysStringByteLen(lpBstr));
if (!*lpDest)
hRet = E_OUTOFMEMORY;
}
else
*lpDest = NULL;
*lpDest = SysAllocStringByteLen((char*)lpBstr, SysStringByteLen(lpBstr));
if (!*lpDest)
hRet = E_OUTOFMEMORY;
}
else
{