[ros-diffs] [fireball] 30615: Andrey Korotaev <unC0Rr at inbox.ru> - Fix inverted logic in fs recognizer, and some comment fixes. See issue #2325 for more details.

fireball at svn.reactos.org fireball at svn.reactos.org
Wed Nov 21 10:18:33 CET 2007


Author: fireball
Date: Wed Nov 21 12:18:32 2007
New Revision: 30615

URL: http://svn.reactos.org/svn/reactos?rev=30615&view=rev
Log:
Andrey Korotaev <unC0Rr at inbox.ru>
- Fix inverted logic in fs recognizer, and some comment fixes.
See issue #2325 for more details.

Modified:
    trunk/reactos/drivers/filesystems/fs_rec/ntfs.c

Modified: trunk/reactos/drivers/filesystems/fs_rec/ntfs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/fs_rec/ntfs.c?rev=30615&r1=30614&r2=30615&view=diff
==============================================================================
--- trunk/reactos/drivers/filesystems/fs_rec/ntfs.c (original)
+++ trunk/reactos/drivers/filesystems/fs_rec/ntfs.c Wed Nov 21 12:18:32 2007
@@ -24,8 +24,8 @@
     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 @@
         (BootSector->Oem[6] == ' ') &&
         (BootSector->Oem[7] == ' '))
     {
-        /* Fail */
-        Result = FALSE;
+        /* Success */
+        Result = TRUE;
     }
 
     /* Return the result */
@@ -84,7 +84,7 @@
                                    (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 @@
                                         (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 @@
                                         (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! */




More information about the Ros-diffs mailing list