initialize Bios Parameter Block

fix building with msvc

svn path=/trunk/; revision=30627
This commit is contained in:
Christoph von Wittich 2007-11-21 15:40:41 +00:00
parent 16a82647de
commit ddcd968807
3 changed files with 9 additions and 4 deletions

View file

@ -23,6 +23,8 @@ FsRecIsFatVolume(IN PPACKED_BOOT_SECTOR PackedBootSector)
BOOLEAN Result = TRUE;
PAGED_CODE();
RtlZeroMemory(&Bpb, sizeof(BIOS_PARAMETER_BLOCK));
/* Unpack the BPB and do a small fix up */
FatUnpackBios(&Bpb, &PackedBootSector->PackedBpb);
if (Bpb.Sectors) Bpb.LargeSectors = 0;

View file

@ -74,6 +74,7 @@ FsRecLoadFileSystem(IN PDEVICE_OBJECT DeviceObject,
return Status;
}
DRIVER_DISPATCH FsRecCreate;
NTSTATUS
STDCALL
FsRecCreate(IN PDEVICE_OBJECT DeviceObject,
@ -102,6 +103,7 @@ FsRecCreate(IN PDEVICE_OBJECT DeviceObject,
return Status;
}
DRIVER_DISPATCH FsRecClose;
NTSTATUS
STDCALL
FsRecClose(IN PDEVICE_OBJECT DeviceObject,
@ -114,6 +116,7 @@ FsRecClose(IN PDEVICE_OBJECT DeviceObject,
return STATUS_SUCCESS;
}
DRIVER_DISPATCH FsRecFsControl;
NTSTATUS
STDCALL
FsRecFsControl(IN PDEVICE_OBJECT DeviceObject,
@ -162,6 +165,7 @@ FsRecFsControl(IN PDEVICE_OBJECT DeviceObject,
return Status;
}
DRIVER_UNLOAD FsRecUnload;
VOID
STDCALL
FsRecUnload(IN PDRIVER_OBJECT DriverObject)

View file

@ -21,11 +21,10 @@ FsRecIsNtfsVolume(IN PPACKED_BOOT_SECTOR BootSector,
IN ULONG BytesPerSector,
IN PLARGE_INTEGER NumberOfSectors)
{
PAGED_CODE();
BOOLEAN Result;
/* Assume failure */
Result = FALSE;
BOOLEAN Result = FALSE;
PAGED_CODE();
if ((BootSector->Oem[0] == 'N') &&
(BootSector->Oem[1] == 'T') &&