mirror of https://github.com/proxmox/mirror_qemu
gcc 2.x fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1192 c046a42c-6fe2-441c-8c8c-71466251a162master
parent
0b0babc623
commit
995179f1cc
|
@ -109,10 +109,12 @@ dmg_close:
|
||||||
/* read offsets */
|
/* read offsets */
|
||||||
last_in_offset = last_out_offset = 0;
|
last_in_offset = last_out_offset = 0;
|
||||||
while(lseek(s->fd,0,SEEK_CUR)<info_end) {
|
while(lseek(s->fd,0,SEEK_CUR)<info_end) {
|
||||||
|
uint32_t type;
|
||||||
|
|
||||||
count = read_uint32(s->fd);
|
count = read_uint32(s->fd);
|
||||||
if(count==0)
|
if(count==0)
|
||||||
goto dmg_close;
|
goto dmg_close;
|
||||||
uint32_t type = read_uint32(s->fd);
|
type = read_uint32(s->fd);
|
||||||
if(type!=0x6d697368 || count<244)
|
if(type!=0x6d697368 || count<244)
|
||||||
lseek(s->fd,count-4,SEEK_CUR);
|
lseek(s->fd,count-4,SEEK_CUR);
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue