mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +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) {
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user