Allow files (and their parent directories) to be renamed even when in use (on Windows).

This commit is contained in:
Mike Gelfand 2015-04-13 18:31:32 +00:00
parent 0bad03e6c1
commit 53a0fc2a19
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ open_file (const char * path,
wide_path = tr_win32_utf8_to_native (path, -1);
if (wide_path != NULL)
ret = CreateFileW (wide_path, access, FILE_SHARE_READ | FILE_SHARE_WRITE,
ret = CreateFileW (wide_path, access, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
NULL, disposition, flags, NULL);
if (ret == TR_BAD_SYS_FILE)