[TFTPD] Fix compilation, and use the #define MAX_SERVERS where needed instead of...
[reactos.git] / base / services / rpcss / rpcss_main.c
index de2a997..adf0e7f 100644 (file)
@@ -94,8 +94,15 @@ BOOL RPCSS_Initialize(void)
   if (status != RPC_S_OK)
     goto fail;
 
-  //exit_event = __wine_make_process_system();
+#ifndef __REACTOS__
+  exit_event = __wine_make_process_system();
+#else
   exit_event = CreateEventW(NULL, FALSE, FALSE, NULL); // never fires
+  {
+    HANDLE hStartEvent = CreateEventW(NULL, TRUE, FALSE, L"ScmCreatedEvent");
+    SetEvent(hStartEvent);
+  }
+#endif
 
   return TRUE;