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:
parent
7a3df4d097
commit
f74dfe3182
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue