Jacek Caban : shdocvw: Pass correct buffer size to UrlApplySchemeW.

Alexandre Julliard julliard at winehq.org
Mon Jun 28 11:01:21 CDT 2010


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Jun 28 12:52:23 2010 +0200

shdocvw: Pass correct buffer size to UrlApplySchemeW.

---

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

diff --git a/dlls/shdocvw/navigate.c b/dlls/shdocvw/navigate.c
index 6d6cbb6..3310cba 100644
--- a/dlls/shdocvw/navigate.c
+++ b/dlls/shdocvw/navigate.c
@@ -486,7 +486,7 @@ static HRESULT create_moniker(LPCWSTR url, IMoniker **mon)
             return hres;
         }
     }else {
-        size = sizeof(new_url);
+        size = sizeof(new_url)/sizeof(WCHAR);
         hres = UrlApplySchemeW(url, new_url, &size, URL_APPLY_GUESSSCHEME);
         TRACE("got %s\n", debugstr_w(new_url));
         if(FAILED(hres)) {




More information about the wine-cvs mailing list