Modules/FDDv2 - Fixed logic error in ReadDir
authorJohn Hodge (sonata) <[email protected]>
Sat, 19 Jan 2013 11:37:40 +0000 (19:37 +0800)
committerJohn Hodge (sonata) <[email protected]>
Sat, 19 Jan 2013 11:37:40 +0000 (19:37 +0800)
KernelLand/Modules/Storage/FDDv2/main.c

index f6290d9..90cff7f 100644 (file)
@@ -115,7 +115,7 @@ int FDD_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX])
 {
        if(Pos < 0 || Pos > MAX_DISKS )
                return -ENOENT;
-       if(gaFDD_Disks[Pos].bValid)
+       if(!gaFDD_Disks[Pos].bValid)
                return 1;
        
        Dest[0] = '0' + Pos;

UCC git Repository :: git.ucc.asn.au