Author: janderwald
Date: Sat Apr 2 15:15:08 2011
New Revision: 51226
URL:
http://svn.reactos.org/svn/reactos?rev=51226&view=rev
Log:
[TEE]
- TEE should overwrite existing file
- Patch by vins8920 hotmail
See issue #6022 for more details.
Modified:
trunk/rosapps/applications/cmdutils/tee/tee.c
Modified: trunk/rosapps/applications/cmdutils/tee/tee.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/cmdutils/tee/…
==============================================================================
--- trunk/rosapps/applications/cmdutils/tee/tee.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/cmdutils/tee/tee.c [iso-8859-1] Sat Apr 2 15:15:08 2011
@@ -154,7 +154,7 @@
//l=0;
hFile[i] = CreateFile(files[i],GENERIC_WRITE,
0,NULL,
- OPEN_ALWAYS,
+ CREATE_ALWAYS,
FILE_ATTRIBUTE_NORMAL,NULL);
if (hFile[i] == INVALID_HANDLE_VALUE)