Eric Pouech : winmm: Protect MCI_SYSINFO against null buffers.
Alexandre Julliard
julliard at winehq.org
Mon Oct 19 09:56:08 CDT 2009
Module: wine
Branch: master
Commit: 4587a322df75853d82048eba61ac523b5a2482d0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4587a322df75853d82048eba61ac523b5a2482d0
Author: Eric Pouech <eric.pouech at orange.fr>
Date: Sat Oct 17 10:08:51 2009 +0200
winmm: Protect MCI_SYSINFO against null buffers.
---
dlls/winmm/mci.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/winmm/mci.c b/dlls/winmm/mci.c
index 32204a0..b133ffc 100644
--- a/dlls/winmm/mci.c
+++ b/dlls/winmm/mci.c
@@ -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);
More information about the wine-cvs
mailing list