mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 07:00:41 +00:00
mciseq: Removed useless casts to long.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3a7a612776
commit
6a9ad836d1
|
@ -179,7 +179,7 @@ static DWORD MIDI_mciReadByte(WINE_MCIMIDI* wmm, BYTE *lpbyt)
|
|||
{
|
||||
DWORD ret = 0;
|
||||
|
||||
if (mmioRead(wmm->hFile, (HPSTR)lpbyt, sizeof(BYTE)) != (long)sizeof(BYTE)) {
|
||||
if (mmioRead(wmm->hFile, (HPSTR)lpbyt, sizeof(BYTE)) != sizeof(BYTE)) {
|
||||
WARN("Error reading wmm=%p\n", wmm);
|
||||
ret = MCIERR_INVALID_FILE;
|
||||
}
|
||||
|
@ -319,8 +319,7 @@ static DWORD MIDI_mciReadMTrk(WINE_MCIMIDI* wmm, MCI_MIDITRACK* mmt)
|
|||
DWORD toberead;
|
||||
FOURCC fourcc;
|
||||
|
||||
if (mmioRead(wmm->hFile, (HPSTR)&fourcc, (long)sizeof(FOURCC)) !=
|
||||
(long)sizeof(FOURCC)) {
|
||||
if (mmioRead(wmm->hFile, (HPSTR)&fourcc, sizeof(FOURCC)) != sizeof(FOURCC)) {
|
||||
return MCIERR_INVALID_FILE;
|
||||
}
|
||||
|
||||
|
@ -413,8 +412,7 @@ static DWORD MIDI_mciReadMThd(WINE_MCIMIDI* wmm, DWORD dwOffset)
|
|||
WARN("Can't seek at %08X begin of 'MThd'\n", dwOffset);
|
||||
return MCIERR_INVALID_FILE;
|
||||
}
|
||||
if (mmioRead(wmm->hFile, (HPSTR)&fourcc,
|
||||
(long) sizeof(FOURCC)) != (long) sizeof(FOURCC))
|
||||
if (mmioRead(wmm->hFile, (HPSTR)&fourcc, sizeof(FOURCC)) != sizeof(FOURCC))
|
||||
return MCIERR_INVALID_FILE;
|
||||
|
||||
if (fourcc != mmioFOURCC('M', 'T', 'h', 'd')) {
|
||||
|
|
Loading…
Reference in a new issue