Detlef Riekenberg : shdocvw: Do not trim the last character, when using the iexplore open menu.

Alexandre Julliard julliard at winehq.org
Tue Aug 3 13:10:33 CDT 2010


Module: wine
Branch: master
Commit: a4e01951579da52b7facc245aad5d5f869ba4aa3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a4e01951579da52b7facc245aad5d5f869ba4aa3

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Tue Aug  3 05:32:29 2010 +0200

shdocvw: Do not trim the last character, when using the iexplore open menu.

---

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

diff --git a/dlls/shdocvw/iexplore.c b/dlls/shdocvw/iexplore.c
index bef25ab..b794a8b 100644
--- a/dlls/shdocvw/iexplore.c
+++ b/dlls/shdocvw/iexplore.c
@@ -251,7 +251,7 @@ static INT_PTR CALLBACK ie_dialog_open_proc(HWND hwnd, UINT msg, WPARAM wparam,
                         V_VT(&url) = VT_BSTR;
                         V_BSTR(&url) = SysAllocStringLen(NULL, len);
 
-                        GetWindowTextW(hwndurl, V_BSTR(&url), len);
+                        GetWindowTextW(hwndurl, V_BSTR(&url), len + 1);
                         IWebBrowser2_Navigate2(WEBBROWSER2(This), &url, NULL, NULL, NULL, NULL);
 
                         SysFreeString(V_BSTR(&url));




More information about the wine-cvs mailing list