Marcus Meissner : dmime: Remove useless NULL check (Coverity).
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jul 22 14:12:22 CDT 2014
Module: wine
Branch: master
Commit: b20365ee29e67ea0f993eee927a1746836f4cef4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b20365ee29e67ea0f993eee927a1746836f4cef4
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Tue Jul 22 09:08:33 2014 +0200
dmime: Remove useless NULL check (Coverity).
---
dlls/dmime/performance.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/dlls/dmime/performance.c b/dlls/dmime/performance.c
index 92e72fe..25e86f9 100644
--- a/dlls/dmime/performance.c
+++ b/dlls/dmime/performance.c
@@ -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;
More information about the wine-cvs
mailing list