From: John Hodge (sonata) Date: Sat, 19 Jan 2013 11:37:40 +0000 (+0800) Subject: Modules/FDDv2 - Fixed logic error in ReadDir X-Git-Tag: rel0.15~598^2~44 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=3ee2be420147b69f6d8bfca559f1edab1303455b;p=tpg%2Facess2.git Modules/FDDv2 - Fixed logic error in ReadDir --- diff --git a/KernelLand/Modules/Storage/FDDv2/main.c b/KernelLand/Modules/Storage/FDDv2/main.c index f6290d90..90cff7f4 100644 --- a/KernelLand/Modules/Storage/FDDv2/main.c +++ b/KernelLand/Modules/Storage/FDDv2/main.c @@ -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;