mmsystem.dll16: Check for NULL ptr in mmioRename (Coverity).
This commit is contained in:
parent
91fbdb561a
commit
40026a7eb7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue