Skip to content

Commit

Permalink
Don't warn when mbat_start is AVAIL instead of EOC (github #9).
Browse files Browse the repository at this point in the history
  • Loading branch information
aquasync committed Nov 6, 2012
1 parent 975365b commit 7919a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ole/storage/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def validate!
# 3 for this value.
# transacting_signature != "\x00" * 4 or
if threshold != 4096 or
num_mbat == 0 && mbat_start != AllocationTable::EOC or
num_mbat == 0 && ![AllocationTable::EOC, AllocationTable::AVAIL].include?(mbat_start) or
reserved != "\x00" * 6
Log.warn "may not be a valid OLE2 structured storage file"
end
Expand Down

0 comments on commit 7919a72

Please sign in to comment.