Module: wine Branch: master Commit: 36ab1878fa8aa601077f1e38877440db9451c3da URL: http://source.winehq.org/git/wine.git/?a=commit;h=36ab1878fa8aa601077f1e3887...
Author: Michael Stefaniuc mstefani@redhat.de Date: Mon Jan 12 11:12:24 2015 +0100
winmm: Remove an unused variable (PVS-Studio).
---
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; }
/**************************************************************************