diff --git a/dlls/ieframe/shellbrowser.c b/dlls/ieframe/shellbrowser.c index 91a3bf6dc1..6e84264390 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; }