From 4afae46c3ac97e821e67daf8bf5185ea22c30b9e Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 14 May 2008 01:05:21 -0700 Subject: [PATCH] mshtml: pass the unmodified spec to nsIIOService_NewURI. --- dlls/mshtml/nsio.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 53ad33e..c4cd8a4 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -2040,6 +2040,7 @@ static nsresult NSAPI nsIOService_NewURI(nsIIOService *iface, const nsACString * const char *aOriginCharset, nsIURI *aBaseURI, nsIURI **_retval) { const char *spec = NULL; + const char *orig_spec = NULL; nsACString spec_str; NSContainer *nscontainer = NULL; nsIURI *uri = NULL; @@ -2049,6 +2050,7 @@ static nsresult NSAPI nsIOService_NewURI(nsIIOService *iface, const nsACString * nsresult nsres; nsACString_GetData(aSpec, &spec); + nsACString_GetData(aSpec, &orig_spec); TRACE("(%p(%s) %s %p %p)\n", aSpec, debugstr_a(spec), debugstr_a(aOriginCharset), aBaseURI, _retval); @@ -2078,7 +2080,7 @@ static nsresult NSAPI nsIOService_NewURI(nsIIOService *iface, const nsACString * nsACString_Finish(&base_uri_str); } - nsACString_Init(&spec_str, spec); + nsACString_Init(&spec_str, orig_spec); nsres = nsIIOService_NewURI(nsio, &spec_str, aOriginCharset, aBaseURI, &uri); nsACString_Finish(&spec_str); if(NS_FAILED(nsres)) -- 1.5.3.6