[SNDVOL32] Fix coding style issues. No code changes!
authorEric Kohl <eric.kohl@reactos.org>
Sun, 10 Feb 2019 12:28:58 +0000 (13:28 +0100)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 10 Feb 2019 17:09:31 +0000 (18:09 +0100)
base/applications/sndvol32/dialog.c
base/applications/sndvol32/sndvol32.c

index 53a1274..564a88b 100644 (file)
@@ -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;
index fde4877..592323e 100644 (file)
@@ -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);
+                        }
                     }
                 }