diff --git a/uriloader/exthandler/win/nsMIMEInfoWin.cpp b/uriloader/exthandler/win/nsMIMEInfoWin.cpp index bee88040932c..2c7171c87703 100644 --- a/uriloader/exthandler/win/nsMIMEInfoWin.cpp +++ b/uriloader/exthandler/win/nsMIMEInfoWin.cpp @@ -235,8 +235,9 @@ nsMIMEInfoWin::LoadUriInternal(nsIURI * aURL) nsCOMPtr 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;