https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f0e6c11bba8e79c3ec0b2…
commit f0e6c11bba8e79c3ec0b2cc8039d99205a6a1786
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Fri Nov 3 18:19:00 2017 +0100
[USETUP][EXT2LIB] NtWriteFile() calls: Remove unused 'ByteOffset = 0', Use
explicit NULL instead of ambiguous 0. CORE-13910
---
base/setup/usetup/bootsup.c | 2 --
sdk/lib/fslib/ext2lib/Disk.c | 4 ++--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/base/setup/usetup/bootsup.c b/base/setup/usetup/bootsup.c
index 9c05e3e7eb..f6818293e7 100644
--- a/base/setup/usetup/bootsup.c
+++ b/base/setup/usetup/bootsup.c
@@ -941,7 +941,6 @@ InstallFat16BootCodeToFile(
return Status;
}
- FileOffset.QuadPart = 0ULL;
Status = NtWriteFile(FileHandle,
NULL,
NULL,
@@ -1102,7 +1101,6 @@ InstallFat32BootCodeToFile(
return Status;
}
- FileOffset.QuadPart = 0ULL;
Status = NtWriteFile(FileHandle,
NULL,
NULL,
diff --git a/sdk/lib/fslib/ext2lib/Disk.c b/sdk/lib/fslib/ext2lib/Disk.c
index 84293219af..2cacaaf8e0 100644
--- a/sdk/lib/fslib/ext2lib/Disk.c
+++ b/sdk/lib/fslib/ext2lib/Disk.c
@@ -1077,7 +1077,7 @@ Ext2WriteDisk( PEXT2_FILESYS Ext2Sys,
Address.QuadPart = Offset;
Status = NtWriteFile( Ext2Sys->MediaHandle,
- 0,
+ NULL,
NULL,
NULL,
&IoStatus,
@@ -1125,7 +1125,7 @@ Ext2WriteDisk( PEXT2_FILESYS Ext2Sys,
Buffer, Length );
Status = NtWriteFile( Ext2Sys->MediaHandle,
- 0,
+ NULL,
NULL,
NULL,
&IoStatus,