fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@115936 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -74,10 +74,10 @@ static void* ProcessURLArg(char* str)
|
||||
rv = file->InitWithPath(str);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
{
|
||||
nsXPIDLCString fileurl;
|
||||
rv = NS_GetURLSpecFromFile(file, getter_Copies(fileurl));
|
||||
if (NS_SUCCEEDED(rv) && fileurl.get())
|
||||
return NS_REINTERPRET_CAST(void*, nsCRT::strdup(fileurl.get()));
|
||||
nsCAutoString fileurl;
|
||||
rv = NS_GetURLSpecFromFile(file, fileurl);
|
||||
if (NS_SUCCEEDED(rv))
|
||||
return NS_REINTERPRET_CAST(void*, ToNewCString(fileurl));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user