From 07fd75baddcf2818a8118db35ebc932b00a188b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Hentschel?= Date: Wed, 24 Oct 2012 20:52:55 +0200 Subject: [PATCH] ieframe: Check for null before dereferencing it (coverity). --- dlls/ieframe/shellbrowser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ieframe/shellbrowser.c b/dlls/ieframe/shellbrowser.c index 91a3bf6dc1e..6e842643907 100644 --- a/dlls/ieframe/shellbrowser.c +++ b/dlls/ieframe/shellbrowser.c @@ -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; } -- 2.11.4.GIT