mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 505934 - Skip the write access checks on Windows CE. r=dtownsend
This commit is contained in:
parent
790a107f1e
commit
1207b3f55b
@ -1647,6 +1647,8 @@ UpdateService.prototype = {
|
||||
if (gCanUpdate !== null)
|
||||
return gCanUpdate;
|
||||
|
||||
// On Windows CE skip the write access checks and assume we have write access
|
||||
#ifndef WINCE
|
||||
try {
|
||||
var appDirFile = getUpdateFile([FILE_PERMS_TEST]);
|
||||
LOG("UpdateService", "canUpdate - testing " + appDirFile.path);
|
||||
@ -1737,13 +1739,15 @@ UpdateService.prototype = {
|
||||
actualAppDirFile.remove(false);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif //XP_WIN
|
||||
}
|
||||
catch (e) {
|
||||
LOG("UpdateService", "canUpdate - unable to update. Exception: " + e);
|
||||
// No write privileges to install directory
|
||||
return gCanUpdate = false;
|
||||
}
|
||||
#endif //WINCE
|
||||
|
||||
// If the administrator has locked the app update functionality
|
||||
// OFF - this is not just a user setting, so disable the manual
|
||||
// UI too.
|
||||
|
Loading…
Reference in New Issue
Block a user