diff options
Diffstat (limited to 'block-dmg.c')
-rw-r--r-- | block-dmg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/block-dmg.c b/block-dmg.c index af8b67b7ab..582e3cb2f0 100644 --- a/block-dmg.c +++ b/block-dmg.c @@ -109,10 +109,12 @@ dmg_close: /* read offsets */ last_in_offset = last_out_offset = 0; while(lseek(s->fd,0,SEEK_CUR)<info_end) { + uint32_t type; + count = read_uint32(s->fd); if(count==0) goto dmg_close; - uint32_t type = read_uint32(s->fd); + type = read_uint32(s->fd); if(type!=0x6d697368 || count<244) lseek(s->fd,count-4,SEEK_CUR); else { |