From 3ebe75f030c837c869ed0fbcc7aedbd705494c81 Mon Sep 17 00:00:00 2001 From: hogliux Date: Tue, 3 Apr 2018 09:51:07 +0100 Subject: [PATCH] Windows: ensured that File::replaceInternal does not fail with ACL errors --- modules/juce_core/native/juce_win32_Files.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/juce_core/native/juce_win32_Files.cpp b/modules/juce_core/native/juce_win32_Files.cpp index b701d7f08c..35bb189abd 100644 --- a/modules/juce_core/native/juce_win32_Files.cpp +++ b/modules/juce_core/native/juce_win32_Files.cpp @@ -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