shdocvw: Unaccess post data only if we've accessed it before.

This commit is contained in:
Jacek Caban 2006-02-16 19:32:11 +01:00 committed by Alexandre Julliard
parent aed49d439e
commit 76a361af82

View file

@ -551,7 +551,8 @@ static HRESULT WINAPI WebBrowser_Navigate2(IWebBrowser2 *iface, VARIANT *URL, VA
hres = navigate_url(This, V_BSTR(URL), post_data, post_data_len, headers);
SafeArrayUnaccessData(V_ARRAY(PostData));
if(post_data)
SafeArrayUnaccessData(V_ARRAY(PostData));
return hres;
}