Michael Stefaniuc : mciavi32: Remove redundant "not NULL" checks of the lpParms arg.

Alexandre Julliard julliard at winehq.org
Mon May 17 09:39:30 CDT 2010


Module: wine
Branch: master
Commit: cea6f01cd97a9a18afa9aa98f1d8eac727fd32ed
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cea6f01cd97a9a18afa9aa98f1d8eac727fd32ed

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon May 17 01:12:08 2010 +0200

mciavi32: Remove redundant "not NULL" checks of the lpParms arg.

---

 dlls/mciavi32/mciavi.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/mciavi32/mciavi.c b/dlls/mciavi32/mciavi.c
index 1c15dc5..a3bce9d 100644
--- a/dlls/mciavi32/mciavi.c
+++ b/dlls/mciavi32/mciavi.c
@@ -427,10 +427,10 @@ static	DWORD	MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
     dwFromFrame = wma->dwCurrVideoFrame;
     dwToFrame = wma->dwPlayableVideoFrames - 1;
 
-    if (lpParms && (dwFlags & MCI_FROM)) {
+    if (dwFlags & MCI_FROM) {
 	dwFromFrame = MCIAVI_ConvertTimeFormatToFrame(wma, lpParms->dwFrom);
     }
-    if (lpParms && (dwFlags & MCI_TO)) {
+    if (dwFlags & MCI_TO) {
 	dwToFrame = MCIAVI_ConvertTimeFormatToFrame(wma, lpParms->dwTo);
     }
     if (dwToFrame >= wma->dwPlayableVideoFrames)
@@ -552,7 +552,7 @@ static	DWORD	MCIAVI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms
 mci_play_done:
     wma->dwStatus = MCI_MODE_STOP;
 
-    if (lpParms && (dwFlags & MCI_NOTIFY)) {
+    if (dwFlags & MCI_NOTIFY) {
 	TRACE("MCI_NOTIFY_SUCCESSFUL %08lX !\n", lpParms->dwCallback);
 	mciDriverNotify(HWND_32(LOWORD(lpParms->dwCallback)),
                        wDevID, MCI_NOTIFY_SUCCESSFUL);




More information about the wine-cvs mailing list