mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 992589 - OperatorApps.jsm errors when running with and without Single Variant apps. r=ferjm
This commit is contained in:
parent
a8d8d24ddd
commit
0096e2592f
@ -142,7 +142,8 @@ this.OperatorAppsRegistry = {
|
||||
let orgDir = Cc["@mozilla.org/file/local;1"]
|
||||
.createInstance(Ci.nsIFile);
|
||||
orgDir.initWithPath(aOrg);
|
||||
if (!orgDir.isDirectory()) {
|
||||
if (!orgDir.exists() || !orgDir.isDirectory()) {
|
||||
debug(aOrg + " does not exist or is not a directory");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -168,7 +169,7 @@ this.OperatorAppsRegistry = {
|
||||
entry.copyTo(dstDir, entry.leafName);
|
||||
} else {
|
||||
yield this._copyDirectory(entry.path,
|
||||
Path.join(aDst, entry.name));
|
||||
Path.join(aDst, entry.leafName));
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
|
Loading…
Reference in New Issue
Block a user