mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
initialize Bios Parameter Block
fix building with msvc svn path=/trunk/; revision=30627
This commit is contained in:
parent
16a82647de
commit
ddcd968807
3 changed files with 9 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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') &&
|
||||
|
|
Loading…
Reference in a new issue