mirror of https://github.com/odrling/Aegisub
Remove access checks in windows fs operations
These were giving false negatives on samba shares, which broke the font collector. Windows also recommends to not use access checks in these cases, and instead just see if the operations succeeds or not.
This commit is contained in:
parent
9ebe154964
commit
b697ad6ca0
|
@ -60,9 +60,7 @@ void Touch(path const& file) {
|
|||
}
|
||||
|
||||
void Copy(fs::path const& from, fs::path const& to) {
|
||||
acs::CheckFileRead(from);
|
||||
CreateDirectory(to.parent_path());
|
||||
acs::CheckDirWrite(to.parent_path());
|
||||
|
||||
if (!CopyFile(from.wstring().c_str(), to.wstring().c_str(), false)) {
|
||||
switch (GetLastError()) {
|
||||
|
|
Loading…
Reference in New Issue