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

Alexandre Julliard julliard at wine.codeweavers.com
Thu Feb 16 14:05:50 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 76a361af8215fa8f8be741c14afad84ae3f1770f
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=76a361af8215fa8f8be741c14afad84ae3f1770f

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Feb 16 19:32:11 2006 +0100

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

---

 dlls/shdocvw/webbrowser.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/shdocvw/webbrowser.c b/dlls/shdocvw/webbrowser.c
index 8f8cf46..493a124 100644
--- a/dlls/shdocvw/webbrowser.c
+++ b/dlls/shdocvw/webbrowser.c
@@ -551,7 +551,8 @@ static HRESULT WINAPI WebBrowser_Navigat
 
     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;
 }




More information about the wine-cvs mailing list