mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 681407 - crash nsLocalFile::CopyMove
This commit is contained in:
parent
e2b3265b60
commit
05beb01b45
@ -1557,6 +1557,8 @@ nsLocalFile::CopyMove(nsIFile *aParentDir, const nsACString &newName, bool move)
|
||||
|
||||
nsCOMPtr<nsISimpleEnumerator> targetIterator;
|
||||
rv = target->GetDirectoryEntries(getter_AddRefs(targetIterator));
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
bool more;
|
||||
targetIterator->HasMoreElements(&more);
|
||||
|
@ -1650,6 +1650,8 @@ nsLocalFile::CopyMove(nsIFile *aParentDir, const nsAString &newName, bool follow
|
||||
|
||||
nsCOMPtr<nsISimpleEnumerator> targetIterator;
|
||||
rv = target->GetDirectoryEntries(getter_AddRefs(targetIterator));
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
bool more;
|
||||
targetIterator->HasMoreElements(&more);
|
||||
|
Loading…
Reference in New Issue
Block a user