mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 12:32:47 +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;
|
BOOLEAN Result = TRUE;
|
||||||
PAGED_CODE();
|
PAGED_CODE();
|
||||||
|
|
||||||
|
RtlZeroMemory(&Bpb, sizeof(BIOS_PARAMETER_BLOCK));
|
||||||
|
|
||||||
/* Unpack the BPB and do a small fix up */
|
/* Unpack the BPB and do a small fix up */
|
||||||
FatUnpackBios(&Bpb, &PackedBootSector->PackedBpb);
|
FatUnpackBios(&Bpb, &PackedBootSector->PackedBpb);
|
||||||
if (Bpb.Sectors) Bpb.LargeSectors = 0;
|
if (Bpb.Sectors) Bpb.LargeSectors = 0;
|
||||||
|
|
|
@ -74,6 +74,7 @@ FsRecLoadFileSystem(IN PDEVICE_OBJECT DeviceObject,
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DRIVER_DISPATCH FsRecCreate;
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
STDCALL
|
STDCALL
|
||||||
FsRecCreate(IN PDEVICE_OBJECT DeviceObject,
|
FsRecCreate(IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
@ -102,6 +103,7 @@ FsRecCreate(IN PDEVICE_OBJECT DeviceObject,
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DRIVER_DISPATCH FsRecClose;
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
STDCALL
|
STDCALL
|
||||||
FsRecClose(IN PDEVICE_OBJECT DeviceObject,
|
FsRecClose(IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
@ -114,6 +116,7 @@ FsRecClose(IN PDEVICE_OBJECT DeviceObject,
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DRIVER_DISPATCH FsRecFsControl;
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
STDCALL
|
STDCALL
|
||||||
FsRecFsControl(IN PDEVICE_OBJECT DeviceObject,
|
FsRecFsControl(IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
@ -162,6 +165,7 @@ FsRecFsControl(IN PDEVICE_OBJECT DeviceObject,
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DRIVER_UNLOAD FsRecUnload;
|
||||||
VOID
|
VOID
|
||||||
STDCALL
|
STDCALL
|
||||||
FsRecUnload(IN PDRIVER_OBJECT DriverObject)
|
FsRecUnload(IN PDRIVER_OBJECT DriverObject)
|
||||||
|
|
|
@ -21,11 +21,10 @@ FsRecIsNtfsVolume(IN PPACKED_BOOT_SECTOR BootSector,
|
||||||
IN ULONG BytesPerSector,
|
IN ULONG BytesPerSector,
|
||||||
IN PLARGE_INTEGER NumberOfSectors)
|
IN PLARGE_INTEGER NumberOfSectors)
|
||||||
{
|
{
|
||||||
PAGED_CODE();
|
|
||||||
BOOLEAN Result;
|
|
||||||
|
|
||||||
/* Assume failure */
|
/* Assume failure */
|
||||||
Result = FALSE;
|
BOOLEAN Result = FALSE;
|
||||||
|
|
||||||
|
PAGED_CODE();
|
||||||
|
|
||||||
if ((BootSector->Oem[0] == 'N') &&
|
if ((BootSector->Oem[0] == 'N') &&
|
||||||
(BootSector->Oem[1] == 'T') &&
|
(BootSector->Oem[1] == 'T') &&
|
||||||
|
|
Loading…
Reference in a new issue