winmm: Require at least 16 bytes in the WAVE fmt header for PlaySound.

This commit is contained in:
Jörg Höhle 2009-10-03 11:42:37 +02:00 committed by Alexandre Julliard
parent b97697dbe7
commit 376f74b452
1 changed files with 1 additions and 1 deletions

View File

@ -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);