winmm: Protect MCI_SYSINFO against null buffers.

This commit is contained in:
Eric Pouech 2009-10-17 10:08:51 +02:00 committed by Alexandre Julliard
parent 3d8507bcb8
commit 4587a322df
1 changed files with 2 additions and 1 deletions

View File

@ -1834,7 +1834,8 @@ static DWORD MCI_SysInfo(UINT uDevID, DWORD dwFlags, LPMCI_SYSINFO_PARMSW lpParm
LPWINE_MCIDRIVER wmd;
HKEY hKey;
if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
if (lpParms == NULL || lpParms->lpstrReturn == NULL)
return MCIERR_NULL_PARAMETER_BLOCK;
TRACE("(%08x, %08X, %p[num=%d, wDevTyp=%u])\n",
uDevID, dwFlags, lpParms, lpParms->dwNumber, lpParms->wDeviceType);