Fix startup code for native NT processes.

smss, autocheck, csrss use new startup code.

svn path=/trunk/; revision=18366
This commit is contained in:
Emanuele Aliberti 2005-10-08 22:42:17 +00:00
parent 320979be58
commit 7ab6a27574
2 changed files with 8 additions and 4 deletions

View 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 */

View 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>