mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Fix for nsbeta2+ bug #37848 r=ssu
This commit is contained in:
parent
82d98577c0
commit
e0ee7e149e
@ -228,6 +228,10 @@ PRInt32 ReplaceFileNow(nsIFile* replacementFile, nsIFile* doomedFile )
|
||||
doomedFile->Clone(getter_AddRefs(tmpFile)); // recreate the tmpFile as a doomedFile
|
||||
tmpFile->MoveTo(parent, leafname);
|
||||
|
||||
tmpFile = parent; //MoveTo on Mac doesn't reset the tmpFile object to
|
||||
tmpFile->Append(leafname); //the new name or location. That's why there's this
|
||||
//explict assignment and Append call.
|
||||
|
||||
if (leafname) nsCRT::free( leafname );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user