Michael Stefaniuc : wineoss.drv: Move a function wide variable down to the block it is used in.
Alexandre Julliard
julliard at winehq.org
Fri Dec 14 07:39:42 CST 2007
Module: wine
Branch: master
Commit: aff83e69db9930af63f0c2f3a4b3e3e753e9e960
URL: http://source.winehq.org/git/wine.git/?a=commit;h=aff83e69db9930af63f0c2f3a4b3e3e753e9e960
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Fri Dec 14 00:18:05 2007 +0100
wineoss.drv: Move a function wide variable down to the block it is used in.
---
dlls/wineoss.drv/mixer.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wineoss.drv/mixer.c b/dlls/wineoss.drv/mixer.c
index 22f580f..34588f9 100644
--- a/dlls/wineoss.drv/mixer.c
+++ b/dlls/wineoss.drv/mixer.c
@@ -1063,7 +1063,7 @@ static DWORD MIX_GetControlDetails(WORD wDevID, LPMIXERCONTROLDETAILS lpmcd,
DWORD fdwDetails)
{
DWORD ret = MMSYSERR_NOTSUPPORTED;
- DWORD c, chnl;
+ DWORD chnl;
struct mixer* mix;
TRACE("(%04X, %p, %u);\n", wDevID, lpmcd, fdwDetails);
@@ -1084,7 +1084,7 @@ static DWORD MIX_GetControlDetails(WORD wDevID, LPMIXERCONTROLDETAILS lpmcd,
TRACE("MIXER_GETCONTROLDETAILSF_VALUE (%08x)\n", lpmcd->dwControlID);
if (MIX_CheckControl(mix, lpmcd->dwControlID))
{
- c = lpmcd->dwControlID - 1;
+ DWORD c = lpmcd->dwControlID - 1;
chnl = HIWORD(mix->ctrl[c].dwLineID);
if (chnl == LINEID_DST)
chnl = LOWORD(mix->ctrl[c].dwLineID) ? SOUND_MIXER_RECLEV :
@@ -1221,7 +1221,7 @@ static DWORD MIX_GetControlDetails(WORD wDevID, LPMIXERCONTROLDETAILS lpmcd,
ret = MMSYSERR_INVALPARAM;
if (MIX_CheckControl(mix, lpmcd->dwControlID))
{
- int c = lpmcd->dwControlID - 1;
+ DWORD c = lpmcd->dwControlID - 1;
if (mix->ctrl[c].ctrl.dwControlType == MIXERCONTROL_CONTROLTYPE_MUX ||
mix->ctrl[c].ctrl.dwControlType == MIXERCONTROL_CONTROLTYPE_MIXER)
More information about the wine-cvs
mailing list