mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 770022 - Provide fallback when UnEscapeNonAsciiURI() fails in nsMIMEInfoWin::LoadUriInternal(). r=bz
--HG-- extra : rebase_source : 58802bc7512de0582c56a95d2a4127c9cb625c03
This commit is contained in:
parent
609674c984
commit
fe29de7a14
@ -235,8 +235,9 @@ nsMIMEInfoWin::LoadUriInternal(nsIURI * aURL)
|
||||
nsCOMPtr<nsITextToSubURI> textToSubURI = do_GetService(NS_ITEXTTOSUBURI_CONTRACTID, &rv);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
rv = textToSubURI->UnEscapeNonAsciiURI(urlCharset, urlSpec, utf16Spec);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (NS_FAILED(textToSubURI->UnEscapeNonAsciiURI(urlCharset, urlSpec, utf16Spec))) {
|
||||
CopyASCIItoUTF16(urlSpec, utf16Spec);
|
||||
}
|
||||
|
||||
static const wchar_t cmdVerb[] = L"open";
|
||||
SHELLEXECUTEINFOW sinfo;
|
||||
|
Loading…
Reference in New Issue
Block a user