Commit b20365ee authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

dmime: Remove useless NULL check (Coverity).

parent 877f1a75
......@@ -388,9 +388,6 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_SendPMsg(IDirectMusicPerforma
return E_POINTER;
}
pItem = DMUS_PMSGToItem(pPMSG);
if (NULL == pItem) {
return E_POINTER;
}
if (pItem->bInUse) {
return DMUS_E_ALREADY_SENT;
}
......@@ -512,9 +509,6 @@ static HRESULT WINAPI IDirectMusicPerformance8Impl_FreePMsg(IDirectMusicPerforma
return E_POINTER;
}
pItem = DMUS_PMSGToItem(pPMSG);
if (NULL == pItem) {
return E_POINTER;
}
if (pItem->bInUse) {
/** prevent for freeing PMsg in queue (ie to be processed) */
return DMUS_E_CANNOT_FREE;
......
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