Author: cwittich Date: Wed Nov 21 18:40:41 2007 New Revision: 30627
URL: http://svn.reactos.org/svn/reactos?rev=30627&view=rev Log: initialize Bios Parameter Block fix building with msvc
Modified: trunk/reactos/drivers/filesystems/fs_rec/fat.c trunk/reactos/drivers/filesystems/fs_rec/fs_rec.c trunk/reactos/drivers/filesystems/fs_rec/ntfs.c
Modified: trunk/reactos/drivers/filesystems/fs_rec/fat.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec/... ============================================================================== --- trunk/reactos/drivers/filesystems/fs_rec/fat.c (original) +++ trunk/reactos/drivers/filesystems/fs_rec/fat.c Wed Nov 21 18:40:41 2007 @@ -22,6 +22,8 @@ BIOS_PARAMETER_BLOCK Bpb; BOOLEAN Result = TRUE; PAGED_CODE(); + + RtlZeroMemory(&Bpb, sizeof(BIOS_PARAMETER_BLOCK));
/* Unpack the BPB and do a small fix up */ FatUnpackBios(&Bpb, &PackedBootSector->PackedBpb);
Modified: trunk/reactos/drivers/filesystems/fs_rec/fs_rec.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec/... ============================================================================== --- trunk/reactos/drivers/filesystems/fs_rec/fs_rec.c (original) +++ trunk/reactos/drivers/filesystems/fs_rec/fs_rec.c Wed Nov 21 18:40:41 2007 @@ -74,6 +74,7 @@ return Status; }
+DRIVER_DISPATCH FsRecCreate; NTSTATUS STDCALL FsRecCreate(IN PDEVICE_OBJECT DeviceObject, @@ -102,6 +103,7 @@ return Status; }
+DRIVER_DISPATCH FsRecClose; NTSTATUS STDCALL FsRecClose(IN PDEVICE_OBJECT DeviceObject, @@ -114,6 +116,7 @@ return STATUS_SUCCESS; }
+DRIVER_DISPATCH FsRecFsControl; NTSTATUS STDCALL FsRecFsControl(IN PDEVICE_OBJECT DeviceObject, @@ -162,6 +165,7 @@ return Status; }
+DRIVER_UNLOAD FsRecUnload; VOID STDCALL FsRecUnload(IN PDRIVER_OBJECT DriverObject)
Modified: trunk/reactos/drivers/filesystems/fs_rec/ntfs.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec/... ============================================================================== --- trunk/reactos/drivers/filesystems/fs_rec/ntfs.c (original) +++ trunk/reactos/drivers/filesystems/fs_rec/ntfs.c Wed Nov 21 18:40:41 2007 @@ -21,11 +21,10 @@ IN ULONG BytesPerSector, IN PLARGE_INTEGER NumberOfSectors) { + /* Assume failure */ + BOOLEAN Result = FALSE; + PAGED_CODE(); - BOOLEAN Result; - - /* Assume failure */ - Result = FALSE;
if ((BootSector->Oem[0] == 'N') && (BootSector->Oem[1] == 'T') &&