mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 19:41:49 +00:00
fix for nsbeta2+ bugs 37363 and 39157. r=dveditz
This commit is contained in:
parent
a61cac632c
commit
822295fbb9
@ -786,13 +786,11 @@ nsInstallFileOpItem::NativeFileOpFileCopyComplete()
|
||||
{
|
||||
PRInt32 ret;
|
||||
char* leafName;
|
||||
nsCOMPtr<nsIFile> parent;
|
||||
|
||||
mAction = nsInstallFileOpItem::ACTION_FAILED;
|
||||
|
||||
mSrc->GetLeafName(&leafName);
|
||||
mTarget->GetParent(getter_AddRefs(parent));
|
||||
ret = mSrc->CopyTo(parent, leafName);
|
||||
ret = mSrc->CopyTo(mTarget, leafName);
|
||||
if(nsInstall::SUCCESS == ret)
|
||||
mAction = nsInstallFileOpItem::ACTION_SUCCESS;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user