Skip to content

Commit d1d76b7

Browse files
committed
Proper conversion for abstract entry to directory
1 parent 668c6e1 commit d1d76b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Library/DiscUtils.Iso9660/VfsCDReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ public Stream OpenBootImage()
540540
throw new InvalidOperationException("No valid boot image");
541541
}
542542
protected override ReaderDirectory ConvertDirEntryToDirectory(ReaderDirEntry dirEntry) {
543-
if (dirEntry.IsDirectory)
543+
if (! dirEntry.IsDirectory)
544544
throw new Exception("Invalid Directory Request record is not a directory");
545545

546546
return new ReaderDirectory(Context, dirEntry);

0 commit comments

Comments
 (0)