svn path=/trunk/; revision=490
This commit is contained in:
Eric Kohl 1999-05-19 18:00:17 +00:00
parent cf7d159791
commit 3bc13b6875
2 changed files with 24 additions and 19 deletions

View file

@ -63,8 +63,11 @@ INT cmd_type (LPTSTR cmd, LPTSTR param)
return 1;
}
hFile = CreateFile (arg[0], GENERIC_READ, FILE_SHARE_READ,
NULL, OPEN_EXISTING,
hFile = CreateFile (arg[0],
GENERIC_READ,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_SEQUENTIAL_SCAN,
NULL);
@ -77,11 +80,17 @@ INT cmd_type (LPTSTR cmd, LPTSTR param)
do
{
bResult = ReadFile (hFile, szBuffer, sizeof(szBuffer),
&dwBytesRead, NULL);
bResult = ReadFile (hFile,
szBuffer,
sizeof(szBuffer),
&dwBytesRead,
NULL);
if (dwBytesRead)
WriteFile (GetStdHandle (STD_OUTPUT_HANDLE), szBuffer, dwBytesRead,
&dwBytesWritten, NULL);
WriteFile (GetStdHandle (STD_OUTPUT_HANDLE),
szBuffer,
dwBytesRead,
&dwBytesWritten,
NULL);
}
while (bResult && dwBytesRead > 0);

View file

@ -1,16 +1,13 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/kernel32/file/file.c
* PURPOSE: Directory functions
* FILE: lib/kernel32/file/delete.c
* PURPOSE: Deleting files
* PROGRAMMER: Ariadne ( ariadne@xs4all.nl)
* GetTempFileName is modified from WINE [ Alexandre Juiliard ]
* UPDATE HISTORY:
* Created 01/11/98
*/
/* FIXME: the large integer manipulations in this file dont handle overflow */
/* INCLUDES ****************************************************************/
#include <windows.h>
@ -86,4 +83,3 @@ WINBOOL STDCALL DeleteFileW(LPCWSTR lpFileName)
}
return TRUE;
}