mirror of
https://github.com/transmission/transmission
synced 2025-02-22 14:10:34 +00:00
Allow files (and their parent directories) to be renamed even when in use (on Windows).
This commit is contained in:
parent
0bad03e6c1
commit
53a0fc2a19
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue