Author: hbelusca
Date: Sun Jan 29 17:45:34 2017
New Revision: 73623
URL:
http://svn.reactos.org/svn/reactos?rev=73623&view=rev
Log:
[CMD]: The 'type' command can open & display files opened with write access.
Modified:
trunk/reactos/base/shell/cmd/type.c
Modified: trunk/reactos/base/shell/cmd/type.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/type.c?rev=…
==============================================================================
--- trunk/reactos/base/shell/cmd/type.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/type.c [iso-8859-1] Sun Jan 29 17:45:34 2017
@@ -82,7 +82,7 @@
hFile = CreateFile(argv[i],
GENERIC_READ,
- FILE_SHARE_READ, NULL,
+ FILE_SHARE_READ | FILE_SHARE_WRITE, NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL, NULL);