Browse Source

Windows: ensured that File::replaceInternal does not fail with ACL errors

tags/2021-05-28
hogliux 7 years ago
parent
commit
3ebe75f030
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/juce_core/native/juce_win32_Files.cpp

+ 2
- 1
modules/juce_core/native/juce_win32_Files.cpp View File

@@ -236,7 +236,8 @@ bool File::replaceInternal (const File& dest) const
void* lpReserved = 0;
return ReplaceFile (dest.getFullPathName().toWideCharPointer(), fullPath.toWideCharPointer(),
0, REPLACEFILE_IGNORE_MERGE_ERRORS, lpExclude, lpReserved) != 0;
0, REPLACEFILE_IGNORE_MERGE_ERRORS | REPLACEFILE_IGNORE_ACL_ERRORS,
lpExclude, lpReserved) != 0;
}
Result File::createDirectoryInternal (const String& fileName) const


Loading…
Cancel
Save