Fix startup code for native NT processes.
authorEmanuele Aliberti <ea@iol.it>
Sat, 8 Oct 2005 22:42:17 +0000 (22:42 +0000)
committerEmanuele Aliberti <ea@iol.it>
Sat, 8 Oct 2005 22:42:17 +0000 (22:42 +0000)
smss, autocheck, csrss use new startup code.

svn path=/trunk/; revision=18366

reactos/subsys/system/autochk/autochk.c
reactos/subsys/system/autochk/autochk.xml

index e869450..de33926 100644 (file)
@@ -67,8 +67,11 @@ PrintString(char* fmt,...)
 
 /* Native image's entry point */
 
-VOID STDCALL
-NtProcessStartup(PPEB Peb)
+int _cdecl
+_main(int argc,
+      char *argv[],
+      char *envp[],
+      int DebugFlag)
 {
   PROCESS_DEVICEMAP_INFORMATION DeviceMap;
   ULONG i;
@@ -93,9 +96,9 @@ NtProcessStartup(PPEB Peb)
        }
       }
     PrintString("\n");
+    return 0;
   }
-
-  NtTerminateProcess(NtCurrentProcess(), 0);
+  return 1;
 }
 
 /* EOF */
index ee8fcbf..9dba21c 100644 (file)
@@ -2,6 +2,7 @@
        <include base="autochk">.</include>
        <define name="__USE_W32API" />
        <define name="_DISABLE_TIDENTS" />
+       <library>nt</library>
        <library>ntdll</library>
        <file>autochk.c</file>
        <file>autochk.rc</file>