Permalink
Browse files

Don't warn when mbat_start is AVAIL instead of EOC (github #9).

  • Loading branch information...
1 parent 975365b commit 7919a72564243c7bd169909db99e984a59a3c29f @aquasync committed Nov 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ole/storage/base.rb
View
@@ -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

0 comments on commit 7919a72

Please sign in to comment.