Jörg Höhle : mciwave: Require at least 16 bytes in the WAVE fmt file header.
Alexandre Julliard
julliard at winehq.org
Thu Sep 24 10:54:50 CDT 2009
Module: wine
Branch: master
Commit: 1a6aa9630571e10f94b69352d80f4c289485168e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1a6aa9630571e10f94b69352d80f4c289485168e
Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date: Thu Sep 24 08:22:43 2009 +0200
mciwave: Require at least 16 bytes in the WAVE fmt file header.
---
dlls/mciwave/mciwave.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mciwave/mciwave.c b/dlls/mciwave/mciwave.c
index c533e85..66af58a 100644
--- a/dlls/mciwave/mciwave.c
+++ b/dlls/mciwave/mciwave.c
@@ -255,7 +255,7 @@ static DWORD WAVE_mciReadFmt(WINE_MCIWAVE* wmw, const MMCKINFO* pckMainRIFF)
wmw->lpWaveFormat = HeapAlloc(GetProcessHeap(), 0, mmckInfo.cksize);
if (!wmw->lpWaveFormat) return MMSYSERR_NOMEM;
r = mmioRead(wmw->hFile, (HPSTR)wmw->lpWaveFormat, mmckInfo.cksize);
- if (r < sizeof(WAVEFORMAT))
+ if (r < sizeof(PCMWAVEFORMAT))
return MCIERR_INVALID_FILE;
TRACE("wFormatTag=%04X !\n", wmw->lpWaveFormat->wFormatTag);
More information about the wine-cvs
mailing list