Fix startup code for native NT processes. smss, autocheck, csrss use new startup code. Modified: trunk/reactos/subsys/system/autochk/autochk.c Modified: trunk/reactos/subsys/system/autochk/autochk.xml _____
Modified: trunk/reactos/subsys/system/autochk/autochk.c --- trunk/reactos/subsys/system/autochk/autochk.c 2005-10-08 22:41:49 UTC (rev 18365) +++ trunk/reactos/subsys/system/autochk/autochk.c 2005-10-08 22:42:17 UTC (rev 18366) @@ -67,8 +67,11 @@
/* 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 @@ } } PrintString("\n"); + return 0; } - - NtTerminateProcess(NtCurrentProcess(), 0); + return 1; }
/* EOF */ _____
Modified: trunk/reactos/subsys/system/autochk/autochk.xml --- trunk/reactos/subsys/system/autochk/autochk.xml 2005-10-08 22:41:49 UTC (rev 18365) +++ trunk/reactos/subsys/system/autochk/autochk.xml 2005-10-08 22:42:17 UTC (rev 18366) @@ -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>