Author: cfinck
Date: Sat May 31 07:48:51 2008
New Revision: 33784
URL:
http://svn.reactos.org/svn/reactos?rev=33784&view=rev
Log:
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.
Modified:
trunk/reactos/dll/win32/kernel32/file/copy.c
Modified: trunk/reactos/dll/win32/kernel32/file/copy.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/co…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/copy.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/file/copy.c [iso-8859-1] Sat May 31 07:48:51 2008
@@ -215,7 +215,7 @@
FileHandleSource = CreateFileW(lpExistingFileName,
GENERIC_READ,
- FILE_SHARE_READ,
+ FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL|FILE_FLAG_NO_BUFFERING,