[PATCH] shdocvw: Do not trim the last character, when using the iexplore open menu
Detlef Riekenberg
wine.dev at web.de
Mon Aug 2 22:32:29 CDT 2010
SysAllocStringLen allocates an extra character for the teminating 0, but
the length in GetWindowText must include the character for the terminating 0.
--
By by ... Detlef
---
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));
--
1.7.0.4
More information about the wine-patches
mailing list