bug 279164 - Links opened from remote apps (using DDE) don't open the URI. r=bryner

This commit is contained in:
bsmedberg%covad.net 2005-01-21 02:17:01 +00:00
Родитель 9b0eaf527a
Коммит 5ad0fe118b
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -384,8 +384,6 @@ nsCommandLine::ResolveURI(const nsAString& aArgument, nsIURI* *aResult)
{
nsresult rv;
NS_ENSURE_TRUE(mWorkingDir, NS_ERROR_NOT_INITIALIZED);
// First, we try to init the argument as an absolute file path. If this doesn't
// work, it is an absolute or relative URI.
@ -400,8 +398,9 @@ nsCommandLine::ResolveURI(const nsAString& aArgument, nsIURI* *aResult)
}
nsCOMPtr<nsIURI> workingDirURI;
rv = io->NewFileURI(mWorkingDir, getter_AddRefs(workingDirURI));
NS_ENSURE_SUCCESS(rv, rv);
if (mWorkingDir) {
io->NewFileURI(mWorkingDir, getter_AddRefs(workingDirURI));
}
return io->NewURI(NS_ConvertUTF16toUTF8(aArgument),
nsnull,