mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
ieframe: Check for null before dereferencing it (coverity).
This commit is contained in:
parent
c60a0b857d
commit
07fd75badd
@ -663,9 +663,9 @@ static HRESULT WINAPI DocObjectService_FireBeforeNavigate2(
|
||||
|
||||
if(cbPostData) {
|
||||
post_data = SafeArrayCreateVector(VT_UI1, 0, cbPostData);
|
||||
memcpy(post_data->pvData, pPostData, cbPostData);
|
||||
if(!post_data)
|
||||
return E_OUTOFMEMORY;
|
||||
memcpy(post_data->pvData, pPostData, cbPostData);
|
||||
}else {
|
||||
post_data = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user