C++ side of fix for bug 100212 - move consumers of nsIFile.URL into nsIIOService. r=dougt, sr=darin
git-svn-id: svn://10.0.0.236/trunk@111529 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -75,7 +75,7 @@ static void* ProcessURLArg(char* str)
|
||||
if (NS_SUCCEEDED(rv))
|
||||
{
|
||||
nsXPIDLCString fileurl;
|
||||
rv = file->GetURL(getter_Copies(fileurl));
|
||||
rv = NS_GetURLSpecFromFile(file, getter_Copies(fileurl));
|
||||
if (NS_SUCCEEDED(rv) && fileurl.get())
|
||||
return NS_REINTERPRET_CAST(void*, nsCRT::strdup(fileurl.get()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user