Bug 770022 - Provide fallback when UnEscapeNonAsciiURI() fails in nsMIMEInfoWin::LoadUriInternal(). r=bz

--HG--
extra : rebase_source : 58802bc7512de0582c56a95d2a4127c9cb625c03
This commit is contained in:
Jorg K 2017-02-08 14:37:00 +08:00
parent 609674c984
commit fe29de7a14

View File

@ -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;