diff --git a/base/applications/sndvol32/dialog.c b/base/applications/sndvol32/dialog.c index 53a12740271..564a88b8ea1 100644 --- a/base/applications/sndvol32/dialog.c +++ b/base/applications/sndvol32/dialog.c @@ -573,7 +573,7 @@ UpdateDialogLineSwitchControl( WCHAR LineName[MIXER_LONG_NAME_CHARS]; /* find the index of this line */ - for(Index = 0; Index < PrefContext->Count; Index++) + for (Index = 0; Index < PrefContext->Count; Index++) { /* get id */ wID = (Index + 1) * IDC_LINE_NAME; @@ -621,7 +621,7 @@ UpdateDialogLineSliderControl( WCHAR LineName[MIXER_LONG_NAME_CHARS]; /* find the index of this line */ - for(Index = 0; Index < PrefContext->Count; Index++) + for (Index = 0; Index < PrefContext->Count; Index++) { /* get id */ wID = (Index + 1) * IDC_LINE_NAME; diff --git a/base/applications/sndvol32/sndvol32.c b/base/applications/sndvol32/sndvol32.c index fde487706e6..592323e51b0 100644 --- a/base/applications/sndvol32/sndvol32.c +++ b/base/applications/sndvol32/sndvol32.c @@ -94,7 +94,7 @@ PrefDlgAddLine(PSND_MIXER Mixer, PPREFERENCES_CONTEXT PrefContext = (PPREFERENCES_CONTEXT)Context; UNREFERENCED_PARAMETER(Mixer); - UNREFERENCED_PARAMETER(DisplayControls); + UNREFERENCED_PARAMETER(DisplayControls); switch (Line->dwComponentType) { @@ -174,7 +174,7 @@ PrefDlgAddConnection(PSND_MIXER Mixer, UINT i; UNREFERENCED_PARAMETER(Mixer); - UNREFERENCED_PARAMETER(LineID); + UNREFERENCED_PARAMETER(LineID); if (Line->cControls != 0) { @@ -877,23 +877,23 @@ MainWindowProc(HWND hwnd, /* check if the message is from the line switch */ if (HIWORD(wParam) == BN_CLICKED && (CtrlID % IDC_LINE_SWITCH == 0)) { - /* compute line offset */ - LineOffset = CtrlID / IDC_LINE_SWITCH; + /* compute line offset */ + LineOffset = CtrlID / IDC_LINE_SWITCH; /* compute window id of line name static control */ CtrlID = LineOffset * IDC_LINE_NAME; - /* get line name */ - if (GetDlgItemTextW(hwnd, CtrlID, Context.LineName, MIXER_LONG_NAME_CHARS) != 0) - { - /* setup context */ - Context.SliderPos = SendMessage((HWND)lParam, BM_GETCHECK, 0, 0); - Context.bVertical = FALSE; - Context.bSwitch = TRUE; + /* get line name */ + if (GetDlgItemTextW(hwnd, CtrlID, Context.LineName, MIXER_LONG_NAME_CHARS) != 0) + { + /* setup context */ + Context.SliderPos = SendMessage((HWND)lParam, BM_GETCHECK, 0, 0); + Context.bVertical = FALSE; + Context.bSwitch = TRUE; - /* set volume */ - SndMixerEnumConnections(Preferences.MixerWindow->Mixer, Preferences.SelectedLine, SetVolumeCallback, (LPVOID)&Context); - } + /* set volume */ + SndMixerEnumConnections(Preferences.MixerWindow->Mixer, Preferences.SelectedLine, SetVolumeCallback, (LPVOID)&Context); + } } }