mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 20:30:04 +00:00
Use FILE_SHARE_READ | FILE_SHARE_WRITE in CopyFileExW to also copy opened files. Thanks to Christoph for the hint.
Behaviour was verified under WinXP SP2. svn path=/trunk/; revision=33784
This commit is contained in:
parent
de95e30718
commit
33369deba9
|
@ -215,7 +215,7 @@ CopyFileExW (
|
||||||
|
|
||||||
FileHandleSource = CreateFileW(lpExistingFileName,
|
FileHandleSource = CreateFileW(lpExistingFileName,
|
||||||
GENERIC_READ,
|
GENERIC_READ,
|
||||||
FILE_SHARE_READ,
|
FILE_SHARE_READ | FILE_SHARE_WRITE,
|
||||||
NULL,
|
NULL,
|
||||||
OPEN_EXISTING,
|
OPEN_EXISTING,
|
||||||
FILE_ATTRIBUTE_NORMAL|FILE_FLAG_NO_BUFFERING,
|
FILE_ATTRIBUTE_NORMAL|FILE_FLAG_NO_BUFFERING,
|
||||||
|
|
Loading…
Reference in a new issue