Module: wine Branch: master Commit: 6a37caaecb77ec9af68f53354985fd723e0305d1 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6a37caaecb77ec9af68f533549...
Author: Jacek Caban jacek@codeweavers.com Date: Sun Nov 14 14:41:18 2010 +0100
mshtml: Use IUri for nsIURI::GetSpec implementation.
---
dlls/mshtml/nsio.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index e268880..650745b 100644 --- a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -1693,13 +1693,10 @@ static nsrefcnt NSAPI nsURI_Release(nsIURL *iface) static nsresult NSAPI nsURI_GetSpec(nsIURL *iface, nsACString *aSpec) { nsWineURI *This = NSURI_THIS(iface); - char speca[INTERNET_MAX_URL_LENGTH];
TRACE("(%p)->(%p)\n", This, aSpec);
- WideCharToMultiByte(CP_ACP, 0, This->wine_url, -1, speca, sizeof(speca), NULL, NULL); - nsACString_SetData(aSpec, speca); - return NS_OK; + return get_uri_string(This, Uri_PROPERTY_DISPLAY_URI, aSpec); }
static nsresult NSAPI nsURI_SetSpec(nsIURL *iface, const nsACString *aSpec)