Author: spetreolle
Date: Sat Oct 24 17:13:30 2009
New Revision: 43717
URL:
http://svn.reactos.org/svn/reactos?rev=43717&view=rev
Log:
add missing checks
fixes winmm:mixer crash
Modified:
trunk/reactos/dll/win32/winmm/winmm.c
Modified: trunk/reactos/dll/win32/winmm/winmm.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/winmm/winmm.c?re…
==============================================================================
--- trunk/reactos/dll/win32/winmm/winmm.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/winmm/winmm.c [iso-8859-1] Sat Oct 24 17:13:30 2009
@@ -568,6 +568,9 @@
TRACE("(%p, %p, %08lx)\n", hmix, lpmliW, fdwInfo);
+ if (lpmliW == NULL || lpmliW->cbStruct != sizeof(*lpmliW))
+ return MMSYSERR_INVALPARAM;
+
if ((uRet = MIXER_GetDev(hmix, fdwInfo, &lpwm)) != MMSYSERR_NOERROR)
return uRet;