winmm: Remove an unused variable (PVS-Studio)
Michael Stefaniuc
mstefani at redhat.de
Mon Jan 12 04:12:24 CST 2015
---
dlls/winmm/mci.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/dlls/winmm/mci.c b/dlls/winmm/mci.c
index 10e2b40..a77514c 100644
--- a/dlls/winmm/mci.c
+++ b/dlls/winmm/mci.c
@@ -2054,14 +2054,13 @@ static DWORD MCI_SysInfo(UINT uDevID, DWORD dwFlags, LPMCI_SYSINFO_PARMSW lpParm
*/
static DWORD MCI_Break(UINT wDevID, DWORD dwFlags, LPMCI_BREAK_PARMS lpParms)
{
- DWORD dwRet = 0;
-
- if (lpParms == NULL) return MCIERR_NULL_PARAMETER_BLOCK;
+ if (lpParms == NULL)
+ return MCIERR_NULL_PARAMETER_BLOCK;
FIXME("(%04x) vkey %04X stub\n", dwFlags, lpParms->nVirtKey);
- if (MMSYSERR_NOERROR==dwRet && (dwFlags & MCI_NOTIFY))
+ if (dwFlags & MCI_NOTIFY)
mciDriverNotify((HWND)lpParms->dwCallback, wDevID, MCI_NOTIFY_SUCCESSFUL);
- return dwRet;
+ return MMSYSERR_NOERROR;
}
/**************************************************************************
--
1.9.3
More information about the wine-patches
mailing list