Commit 8becc699 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Fixed alignment and position when looking for mmio chunks.

parent 9930c391
......@@ -1002,16 +1002,15 @@ UINT16 WINAPI mmioDescend(HMMIO16 hmmio, LPMMCKINFO lpck,
memcpy(fcc,&lpck->fccType,4);
TRACE(mmio, "ckid=%s fcc=%s cksize=%08lX !\n",
ckid, searchcki.fccType?fcc:"<unused>",
lpck->cksize
);
lpck->cksize);
if ((searchcki.ckid == lpck->ckid) &&
(!searchcki.fccType ||
(searchcki.fccType == lpck->fccType)
)
)
)
break;
dwOldPos = lpck->dwDataOffset + lpck->cksize;
dwOldPos = lpck->dwDataOffset + ((lpck->cksize + 1) & ~1);
mmioSeek(hmmio, dwOldPos, SEEK_SET);
}
/* If we were looking for RIFF/LIST chunks, the final dataptr
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment