Skip to content

Commit

Permalink
Merge pull request #10 from roliveri/ntfs-fix
Browse files Browse the repository at this point in the history
Removed questionable check in NTFS code.
  • Loading branch information
chessbyte authored Jun 1, 2017
2 parents 4555cfc + e1e223f commit d0f730f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/fs/ntfs/directory_index_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ def initialize(buf)
# Child node VCN is located 8 bytes before 'length' bytes.
# NOTE: If the node has 0 contents, it's offset 16.
@child = buf[@contentLen == 0 ? 16 : @length - 8, 8].unpack('Q')[0]
if @child.class == Bignum
# buf.hex_dump(:obj => STDOUT, :meth => :puts, :newline => false)
raise "MIQ(NTFS::DirectoryIndexNode.initialize) Bad child node: #{@child}"
end
end
end

Expand Down

0 comments on commit d0f730f

Please sign in to comment.