winmm: Require at least 16 bytes in the WAVE fmt header for PlaySound.
This commit is contained in:
parent
b97697dbe7
commit
376f74b452
|
@ -376,7 +376,7 @@ static DWORD WINAPI proc_PlaySound(LPVOID arg)
|
|||
(LPSTR)&mmckInfo.ckid, mmckInfo.fccType, mmckInfo.cksize);
|
||||
|
||||
lpWaveFormat = HeapAlloc(GetProcessHeap(), 0, mmckInfo.cksize);
|
||||
if (mmioRead(hmmio, (HPSTR)lpWaveFormat, mmckInfo.cksize) < sizeof(WAVEFORMAT))
|
||||
if (mmioRead(hmmio, (HPSTR)lpWaveFormat, mmckInfo.cksize) < sizeof(PCMWAVEFORMAT))
|
||||
goto errCleanUp;
|
||||
|
||||
TRACE("wFormatTag=%04X !\n", lpWaveFormat->wFormatTag);
|
||||
|
|
Loading…
Reference in New Issue