mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[USETUP][ROSAPPS][EXT2LIB] NtReadFile() calls: Remove unused 'ByteOffset = 0', Use explicit NULL instead of ambiguous 0, Remove casts to same type. CORE-13910
This commit is contained in:
parent
ba9a1c3abb
commit
bcaa33e33b
4 changed files with 7 additions and 8 deletions
|
@ -1001,7 +1001,6 @@ InstallFat32BootCodeToFile(
|
|||
return Status;
|
||||
}
|
||||
|
||||
FileOffset.QuadPart = 0ULL;
|
||||
Status = NtReadFile(FileHandle,
|
||||
NULL,
|
||||
NULL,
|
||||
|
|
|
@ -170,7 +170,7 @@ FlushConsoleInputBuffer(
|
|||
&InputData,
|
||||
sizeof(KEYBOARD_INPUT_DATA),
|
||||
&Offset,
|
||||
0);
|
||||
NULL);
|
||||
if (Status == STATUS_PENDING)
|
||||
{
|
||||
Timeout.QuadPart = -100;
|
||||
|
@ -208,7 +208,7 @@ ReadConsoleInput(
|
|||
&InputData,
|
||||
sizeof(KEYBOARD_INPUT_DATA),
|
||||
&Offset,
|
||||
0);
|
||||
NULL);
|
||||
if (Status == STATUS_PENDING)
|
||||
{
|
||||
Status = NtWaitForSingleObject(hConsoleInput, FALSE, NULL);
|
||||
|
|
|
@ -2233,9 +2233,9 @@ long PICE_read(HANDLE hFile, LPVOID lpBuffer, long lBytes)
|
|||
ASSERT( lpBuffer );
|
||||
|
||||
if (!NT_SUCCESS(NtReadFile(
|
||||
(HANDLE) hFile,
|
||||
hFile,
|
||||
NULL, NULL, NULL, &iosb,
|
||||
(LPVOID) lpBuffer,
|
||||
lpBuffer,
|
||||
(DWORD) lBytes,
|
||||
NULL,
|
||||
NULL
|
||||
|
|
|
@ -982,7 +982,7 @@ Ext2ReadDisk( PEXT2_FILESYS Ext2Sys,
|
|||
Address.QuadPart = Offset;
|
||||
|
||||
Status = NtReadFile( Ext2Sys->MediaHandle,
|
||||
0,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
&IoStatus,
|
||||
|
@ -1009,7 +1009,7 @@ Ext2ReadDisk( PEXT2_FILESYS Ext2Sys,
|
|||
}
|
||||
|
||||
Status = NtReadFile( Ext2Sys->MediaHandle,
|
||||
0,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
&IoStatus,
|
||||
|
@ -1106,7 +1106,7 @@ Ext2WriteDisk( PEXT2_FILESYS Ext2Sys,
|
|||
if ((AlignedLength != Length) || (Address.QuadPart != (LONGLONG)Offset))
|
||||
{
|
||||
Status = NtReadFile( Ext2Sys->MediaHandle,
|
||||
0,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
&IoStatus,
|
||||
|
|
Loading…
Reference in a new issue