Fixes 165561. r=me, sr=darin, by=pete collins
git-svn-id: svn://10.0.0.236/trunk@128503 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
94746019d3
commit
b1b39f9e94
@ -709,8 +709,13 @@ nsLocalFile::CopyToNative(nsIFile *newParent, const nsACString &newName)
|
||||
|
||||
// we copy the parent here so 'newParent' remains immutable
|
||||
nsCOMPtr <nsIFile> workParent;
|
||||
if (NS_FAILED(rv = newParent->Clone(getter_AddRefs(workParent))))
|
||||
return rv;
|
||||
if (newParent) {
|
||||
if (NS_FAILED(rv = newParent->Clone(getter_AddRefs(workParent))))
|
||||
return rv;
|
||||
} else {
|
||||
if (NS_FAILED(rv = GetParent(getter_AddRefs(workParent))))
|
||||
return rv;
|
||||
}
|
||||
|
||||
// check to see if we are a directory or if we are a file
|
||||
PRBool isDirectory;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user