mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:45:56 +00:00
add missing checks
fixes winmm:mixer crash svn path=/trunk/; revision=43717
This commit is contained in:
parent
e7fe9eb96e
commit
3a8773297f
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue