Coding style clean-up. No code changes.
[reactos.git] / reactos / dll / cpl / sysdm / hardware.c
index 2829e6d..134b368 100644 (file)
@@ -12,7 +12,8 @@
 
 typedef BOOL (STDCALL *PDEVMGREXEC)(HWND hWndParent, HINSTANCE hInst, PVOID Unknown, int nCmdShow);
 
-BOOL LaunchDeviceManager(HWND hWndParent)
+static BOOL
+LaunchDeviceManager(HWND hWndParent)
 {
 /* hack for ROS to start our devmgmt until we have mmc */
 #ifdef __REACTOS__
@@ -49,37 +50,29 @@ HardwarePageProc(HWND hwndDlg,
 {
     UNREFERENCED_PARAMETER(lParam);
 
-    switch(uMsg)
+    switch (uMsg)
     {
         case WM_INITDIALOG:
-        break;
+            break;
 
         case WM_COMMAND:
-        {
-            switch(LOWORD(wParam))
+            switch (LOWORD(wParam))
             {
                 case IDC_HARDWARE_DEVICE_MANAGER:
-                {
-                    if(!LaunchDeviceManager(hwndDlg))
+                    if (!LaunchDeviceManager(hwndDlg))
                     {
                         /* FIXME */
                     }
-
                     return TRUE;
-                }
 
                 case IDC_HARDWARE_PROFILE:
-                {
                     DialogBox(hApplet,
                               MAKEINTRESOURCE(IDD_HARDWAREPROFILES),
                               hwndDlg,
                               (DLGPROC)HardProfDlgProc);
-
                     return TRUE;
-                }
             }
-        }
-        break;
+            break;
     }
 
     return FALSE;