From 40026a7eb7b3fc5500c61b2b2a1496d2322acd2d Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 3 Dec 2009 00:29:24 +0100 Subject: [PATCH] mmsystem.dll16: Check for NULL ptr in mmioRename (Coverity). --- dlls/mmsystem.dll16/mmio16.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/mmsystem.dll16/mmio16.c b/dlls/mmsystem.dll16/mmio16.c index d0e24bc7038..cc13583807a 100644 --- a/dlls/mmsystem.dll16/mmio16.c +++ b/dlls/mmsystem.dll16/mmio16.c @@ -631,7 +631,8 @@ MMRESULT16 WINAPI mmioRename16(LPCSTR szFileName, LPCSTR szNewFileName, inst = TRUE; } memset(&mmioinfo, 0, sizeof(mmioinfo)); - mmioinfo.fccIOProc = lpmmioinfo->fccIOProc; + if (lpmmioinfo) + mmioinfo.fccIOProc = lpmmioinfo->fccIOProc; ret = mmioRenameA(szFileName, szNewFileName, &mmioinfo, dwRenameFlags); if (inst) { mmioInstallIOProc16(lpmmioinfo->fccIOProc, NULL, MMIO_REMOVEPROC); -- 2.11.4.GIT