# This patch file was generated by NetBeans IDE # It uses platform neutral UTF-8 encoding and \n newlines. --- Base (BASE) +++ Locally Modified (Based On LOCAL) @@ -308,6 +308,9 @@ } if(GetFileAttributesExW(file, GetFileExInfoStandard, &attrs)) { + if(attrs.dwFileAttributes & FILE_ATTRIBUTE_READONLY) { // if read-only attrib is set + SetFileAttributesW(file, FILE_ATTRIBUTE_NORMAL); // then remove read-only attrib + } if(attrs.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) while((!RemoveDirectoryW(file) || GetFileAttributesExW(file, GetFileExInfoStandard, &attrs)) && ((count++) < MAX_ATTEPTS))