mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
Andrey Korotaev <unC0Rr@inbox.ru>
- Fix inverted logic in fs recognizer, and some comment fixes. See issue #2325 for more details. svn path=/trunk/; revision=30615
This commit is contained in:
parent
4f69fa75ae
commit
fb08021b40
1 changed files with 7 additions and 7 deletions
|
@ -24,8 +24,8 @@ FsRecIsNtfsVolume(IN PPACKED_BOOT_SECTOR BootSector,
|
|||
PAGED_CODE();
|
||||
BOOLEAN Result;
|
||||
|
||||
/* Assume success */
|
||||
Result = TRUE;
|
||||
/* Assume failure */
|
||||
Result = FALSE;
|
||||
|
||||
if ((BootSector->Oem[0] == 'N') &&
|
||||
(BootSector->Oem[1] == 'T') &&
|
||||
|
@ -36,8 +36,8 @@ FsRecIsNtfsVolume(IN PPACKED_BOOT_SECTOR BootSector,
|
|||
(BootSector->Oem[6] == ' ') &&
|
||||
(BootSector->Oem[7] == ' '))
|
||||
{
|
||||
/* Fail */
|
||||
Result = FALSE;
|
||||
/* Success */
|
||||
Result = TRUE;
|
||||
}
|
||||
|
||||
/* Return the result */
|
||||
|
@ -84,7 +84,7 @@ FsRecNtfsFsControl(IN PDEVICE_OBJECT DeviceObject,
|
|||
(PVOID)&Bpb,
|
||||
NULL))
|
||||
{
|
||||
/* Check if it's an actual FAT volume */
|
||||
/* Check if it's an actual NTFS volume */
|
||||
if (FsRecIsNtfsVolume(Bpb, SectorSize, &SectorCount))
|
||||
{
|
||||
/* It is! */
|
||||
|
@ -98,7 +98,7 @@ FsRecNtfsFsControl(IN PDEVICE_OBJECT DeviceObject,
|
|||
(PVOID)&Bpb,
|
||||
NULL))
|
||||
{
|
||||
/* Check if it's an actual FAT volume */
|
||||
/* Check if it's an actual NTFS volume */
|
||||
if (FsRecIsNtfsVolume(Bpb, SectorSize, &SectorCount))
|
||||
{
|
||||
/* It is! */
|
||||
|
@ -112,7 +112,7 @@ FsRecNtfsFsControl(IN PDEVICE_OBJECT DeviceObject,
|
|||
(PVOID)&Bpb,
|
||||
NULL))
|
||||
{
|
||||
/* Check if it's an actual FAT volume */
|
||||
/* Check if it's an actual NTFS volume */
|
||||
if (FsRecIsNtfsVolume(Bpb, SectorSize, &SectorCount))
|
||||
{
|
||||
/* It is! */
|
||||
|
|
Loading…
Reference in a new issue