Jacek Caban : mshtml: Return true spec in nsIURI::GetSpec.

Alexandre Julliard julliard at winehq.org
Wed Aug 18 12:09:59 CDT 2010


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Aug 18 13:38:07 2010 +0200

mshtml: Return true spec in nsIURI::GetSpec.

---

 dlls/mshtml/nsio.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c
index d7b0989..5332a02 100644
--- a/dlls/mshtml/nsio.c
+++ b/dlls/mshtml/nsio.c
@@ -1575,8 +1575,8 @@ static nsresult NSAPI nsURI_GetSpec(nsIURL *iface, nsACString *aSpec)
     TRACE("(%p)->(%p)\n", This, aSpec);
 
     if(This->use_wine_url) {
-        char speca[INTERNET_MAX_URL_LENGTH] = "wine:";
-        WideCharToMultiByte(CP_ACP, 0, This->wine_url, -1, speca+5, sizeof(speca)-5, NULL, NULL);
+        char speca[INTERNET_MAX_URL_LENGTH];
+        WideCharToMultiByte(CP_ACP, 0, This->wine_url, -1, speca, sizeof(speca), NULL, NULL);
         nsACString_SetData(aSpec, speca);
 
         return NS_OK;




More information about the wine-cvs mailing list