add missing checks

fixes winmm:mixer crash

svn path=/trunk/; revision=43717
This commit is contained in:
Sylvain Petreolle 2009-10-24 15:13:30 +00:00
parent e7fe9eb96e
commit 3a8773297f

View file

@ -568,6 +568,9 @@ UINT WINAPI mixerGetLineInfoW(HMIXEROBJ hmix, LPMIXERLINEW lpmliW, DWORD fdwInfo
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;