Commit 40026a7e authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

parent 91fbdb56
...@@ -631,7 +631,8 @@ MMRESULT16 WINAPI mmioRename16(LPCSTR szFileName, LPCSTR szNewFileName, ...@@ -631,7 +631,8 @@ MMRESULT16 WINAPI mmioRename16(LPCSTR szFileName, LPCSTR szNewFileName,
inst = TRUE; inst = TRUE;
} }
memset(&mmioinfo, 0, sizeof(mmioinfo)); memset(&mmioinfo, 0, sizeof(mmioinfo));
mmioinfo.fccIOProc = lpmmioinfo->fccIOProc; if (lpmmioinfo)
mmioinfo.fccIOProc = lpmmioinfo->fccIOProc;
ret = mmioRenameA(szFileName, szNewFileName, &mmioinfo, dwRenameFlags); ret = mmioRenameA(szFileName, szNewFileName, &mmioinfo, dwRenameFlags);
if (inst) { if (inst) {
mmioInstallIOProc16(lpmmioinfo->fccIOProc, NULL, MMIO_REMOVEPROC); mmioInstallIOProc16(lpmmioinfo->fccIOProc, NULL, MMIO_REMOVEPROC);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment