https://git.reactos.org/?p=reactos.git;a=commitdiff;h=b995880ee420ce85a3b78b...
commit b995880ee420ce85a3b78b6890d4b622d7f2e129 Author: Eric Kohl eric.kohl@reactos.org AuthorDate: Sun Feb 10 13:28:58 2019 +0100 Commit: Eric Kohl eric.kohl@reactos.org CommitDate: Sun Feb 10 18:09:31 2019 +0100
[SNDVOL32] Fix coding style issues. No code changes! --- base/applications/sndvol32/dialog.c | 4 ++-- base/applications/sndvol32/sndvol32.c | 30 +++++++++++++++--------------- 2 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/base/applications/sndvol32/dialog.c b/base/applications/sndvol32/dialog.c index 53a1274027..564a88b8ea 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 fde487706e..592323e51b 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; - - /* set volume */ - SndMixerEnumConnections(Preferences.MixerWindow->Mixer, Preferences.SelectedLine, SetVolumeCallback, (LPVOID)&Context); - } + /* 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); + } } }