mmsystem.dll16: Check for NULL ptr in mmioRename (Coverity).

This commit is contained in:
Marcus Meissner 2009-12-03 00:29:24 +01:00 committed by Alexandre Julliard
parent 91fbdb561a
commit 40026a7eb7
1 changed files with 2 additions and 1 deletions

View File

@ -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);