[ADVAPI32] Code formatting + improve two traces.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 25 Feb 2018 18:40:08 +0000 (19:40 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 25 Feb 2018 23:37:05 +0000 (00:37 +0100)
dll/win32/advapi32/service/sctrl.c

index b5e1b8a..30903ff 100644 (file)
@@ -229,7 +229,6 @@ ScConnectControlPipe(HANDLE *hPipe)
                                     QueryTable,
                                     NULL,
                                     NULL);
                                     QueryTable,
                                     NULL,
                                     NULL);
-
     if (!NT_SUCCESS(Status))
     {
         ERR("RtlQueryRegistryValues() failed (Status %lx)\n", Status);
     if (!NT_SUCCESS(Status))
     {
         ERR("RtlQueryRegistryValues() failed (Status %lx)\n", Status);
@@ -638,7 +637,7 @@ ScServiceDispatcher(HANDLE hPipe,
 
 
 /**********************************************************************
 
 
 /**********************************************************************
- *     RegisterServiceCtrlHandlerA
+ *  RegisterServiceCtrlHandlerA
  *
  * @implemented
  */
  *
  * @implemented
  */
@@ -667,7 +666,7 @@ RegisterServiceCtrlHandlerA(LPCSTR lpServiceName,
 
 
 /**********************************************************************
 
 
 /**********************************************************************
- *     RegisterServiceCtrlHandlerW
+ *  RegisterServiceCtrlHandlerW
  *
  * @implemented
  */
  *
  * @implemented
  */
@@ -693,7 +692,7 @@ RegisterServiceCtrlHandlerW(LPCWSTR lpServiceName,
 
 
 /**********************************************************************
 
 
 /**********************************************************************
- *     RegisterServiceCtrlHandlerExA
+ *  RegisterServiceCtrlHandlerExA
  *
  * @implemented
  */
  *
  * @implemented
  */
@@ -724,7 +723,7 @@ RegisterServiceCtrlHandlerExA(LPCSTR lpServiceName,
 
 
 /**********************************************************************
 
 
 /**********************************************************************
- *     RegisterServiceCtrlHandlerExW
+ *  RegisterServiceCtrlHandlerExW
  *
  * @implemented
  */
  *
  * @implemented
  */
@@ -752,7 +751,7 @@ RegisterServiceCtrlHandlerExW(LPCWSTR lpServiceName,
 
 
 /**********************************************************************
 
 
 /**********************************************************************
- *     I_ScIsSecurityProcess
+ *  I_ScIsSecurityProcess
  *
  * Undocumented
  *
  *
  * Undocumented
  *
@@ -766,7 +765,7 @@ I_ScIsSecurityProcess(VOID)
 
 
 /**********************************************************************
 
 
 /**********************************************************************
- *     I_ScPnPGetServiceName
+ *  I_ScPnPGetServiceName
  *
  * Undocumented
  *
  *
  * Undocumented
  *
@@ -794,7 +793,7 @@ I_ScPnPGetServiceName(IN SERVICE_STATUS_HANDLE hServiceStatus,
 
 
 /**********************************************************************
 
 
 /**********************************************************************
- *     I_ScSetServiceBitsA
+ *  I_ScSetServiceBitsA
  *
  * Undocumented
  *
  *
  * Undocumented
  *
@@ -811,7 +810,6 @@ I_ScSetServiceBitsA(SERVICE_STATUS_HANDLE hServiceStatus,
 
     RpcTryExcept
     {
 
     RpcTryExcept
     {
-        /* Call to services.exe using RPC */
         bResult = RI_ScSetServiceBitsA((RPC_SERVICE_STATUS_HANDLE)hServiceStatus,
                                        dwServiceBits,
                                        bSetBitsOn,
         bResult = RI_ScSetServiceBitsA((RPC_SERVICE_STATUS_HANDLE)hServiceStatus,
                                        dwServiceBits,
                                        bSetBitsOn,
@@ -830,7 +828,7 @@ I_ScSetServiceBitsA(SERVICE_STATUS_HANDLE hServiceStatus,
 
 
 /**********************************************************************
 
 
 /**********************************************************************
- *     I_ScSetServiceBitsW
+ *  I_ScSetServiceBitsW
  *
  * Undocumented
  *
  *
  * Undocumented
  *
@@ -847,7 +845,6 @@ I_ScSetServiceBitsW(SERVICE_STATUS_HANDLE hServiceStatus,
 
     RpcTryExcept
     {
 
     RpcTryExcept
     {
-        /* Call to services.exe using RPC */
         bResult = RI_ScSetServiceBitsW((RPC_SERVICE_STATUS_HANDLE)hServiceStatus,
                                        dwServiceBits,
                                        bSetBitsOn,
         bResult = RI_ScSetServiceBitsW((RPC_SERVICE_STATUS_HANDLE)hServiceStatus,
                                        dwServiceBits,
                                        bSetBitsOn,
@@ -866,7 +863,7 @@ I_ScSetServiceBitsW(SERVICE_STATUS_HANDLE hServiceStatus,
 
 
 /**********************************************************************
 
 
 /**********************************************************************
- *     SetServiceBits
+ *  SetServiceBits
  *
  * @implemented
  */
  *
  * @implemented
  */
@@ -885,7 +882,7 @@ SetServiceBits(SERVICE_STATUS_HANDLE hServiceStatus,
 
 
 /**********************************************************************
 
 
 /**********************************************************************
- *     SetServiceStatus
+ *  SetServiceStatus
  *
  * @implemented
  */
  *
  * @implemented
  */
@@ -895,12 +892,10 @@ SetServiceStatus(SERVICE_STATUS_HANDLE hServiceStatus,
 {
     DWORD dwError;
 
 {
     DWORD dwError;
 
-    TRACE("SetServiceStatus() called\n");
-    TRACE("hServiceStatus %lu\n", hServiceStatus);
+    TRACE("SetServiceStatus(hServiceStatus %lu) called\n", hServiceStatus);
 
     RpcTryExcept
     {
 
     RpcTryExcept
     {
-        /* Call to services.exe using RPC */
         dwError = RSetServiceStatus((RPC_SERVICE_STATUS_HANDLE)hServiceStatus,
                                     lpServiceStatus);
     }
         dwError = RSetServiceStatus((RPC_SERVICE_STATUS_HANDLE)hServiceStatus,
                                     lpServiceStatus);
     }
@@ -912,7 +907,7 @@ SetServiceStatus(SERVICE_STATUS_HANDLE hServiceStatus,
 
     if (dwError != ERROR_SUCCESS)
     {
 
     if (dwError != ERROR_SUCCESS)
     {
-        ERR("ScmrSetServiceStatus() failed (Error %lu)\n", dwError);
+        ERR("RSetServiceStatus() failed (Error %lu)\n", dwError);
         SetLastError(dwError);
         return FALSE;
     }
         SetLastError(dwError);
         return FALSE;
     }
@@ -924,7 +919,7 @@ SetServiceStatus(SERVICE_STATUS_HANDLE hServiceStatus,
 
 
 /**********************************************************************
 
 
 /**********************************************************************
- *     StartServiceCtrlDispatcherA
+ *  StartServiceCtrlDispatcherA
  *
  * @implemented
  */
  *
  * @implemented
  */
@@ -1011,7 +1006,7 @@ done:
 
 
 /**********************************************************************
 
 
 /**********************************************************************
- *     StartServiceCtrlDispatcherW
+ *  StartServiceCtrlDispatcherW
  *
  * @implemented
  */
  *
  * @implemented
  */