Jörg Höhle : winmm: Require at least 16 bytes in the WAVE fmt header for PlaySound.
Alexandre Julliard
julliard at winehq.org
Mon Oct 5 09:54:30 CDT 2009
Module: wine
Branch: master
Commit: 376f74b452c2b8dff15b62f6225a27e29814accc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=376f74b452c2b8dff15b62f6225a27e29814accc
Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date: Sat Oct 3 11:42:37 2009 +0200
winmm: Require at least 16 bytes in the WAVE fmt header for PlaySound.
---
dlls/winmm/playsound.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/winmm/playsound.c b/dlls/winmm/playsound.c
index e1badec..54db68f 100644
--- a/dlls/winmm/playsound.c
+++ b/dlls/winmm/playsound.c
@@ -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);
More information about the wine-cvs
mailing list