update for HEAD-2003021201
[reactos.git] / lib / advapi32 / service / sctrl.c
index b407f1a..9fb8d2d 100644 (file)
 
 /* INCLUDES ******************************************************************/
 
+#define NTOS_MODE_USER
+#include <ntos.h>
 #include <windows.h>
-#include <ddk/ntddk.h>
+#include <string.h>
+#include <wchar.h>
 
 #define NDEBUG
 #include <debug.h>
@@ -34,7 +37,7 @@ typedef struct
 
 static ULONG ActiveServiceCount;
 static PACTIVE_SERVICE ActiveServices;
-static PHANDLE ActiveServicesThreadHandles;
+/* static PHANDLE ActiveServicesThreadHandles; */ /* uncomment when in use */
 
 /* FUNCTIONS *****************************************************************/
 
@@ -314,9 +317,6 @@ BOOL STDCALL
 StartServiceCtrlDispatcherW(LPSERVICE_TABLE_ENTRYW lpServiceStartTable)
 {
   ULONG i;
-  HANDLE h;
-  DWORD Tid;
-  DWORD r;
   HANDLE hPipe;
   DWORD dwError;
 
@@ -346,7 +346,7 @@ StartServiceCtrlDispatcherW(LPSERVICE_TABLE_ENTRYW lpServiceStartTable)
     }
 
   dwError = ScConnectControlPipe(&hPipe);
-  if (dwError = ERROR_SUCCESS)
+  if (dwError == ERROR_SUCCESS)
     {
       /* FIXME: free the service table */
       return(FALSE);