ieframe: Check for null before dereferencing it (coverity).

This commit is contained in:
André Hentschel 2012-10-24 20:52:55 +02:00 committed by Alexandre Julliard
parent c60a0b857d
commit 07fd75badd

View File

@ -663,9 +663,9 @@ static HRESULT WINAPI DocObjectService_FireBeforeNavigate2(
if(cbPostData) { if(cbPostData) {
post_data = SafeArrayCreateVector(VT_UI1, 0, cbPostData); post_data = SafeArrayCreateVector(VT_UI1, 0, cbPostData);
memcpy(post_data->pvData, pPostData, cbPostData);
if(!post_data) if(!post_data)
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
memcpy(post_data->pvData, pPostData, cbPostData);
}else { }else {
post_data = NULL; post_data = NULL;
} }