Shutdown after shell exit

svn path=/trunk/; revision=4380
This commit is contained in:
Gé van Geldorp 2003-03-20 20:56:52 +00:00
parent a4907447eb
commit 6aa0e3b90d

View file

@ -1,4 +1,4 @@
/* $Id: winlogon.c,v 1.16 2003/03/20 19:21:01 rcampbell Exp $
/* $Id: winlogon.c,v 1.17 2003/03/20 20:56:52 gvg Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -18,7 +18,7 @@
#include <wchar.h>
#define DBG
#define NDEBUG
#include <debug.h>
/* GLOBALS ******************************************************************/
@ -420,8 +420,6 @@ WinMain(HINSTANCE hInstance,
*/
/* Main loop */
for (;;)
{
#if 0
/* Display login prompt */
WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE),
@ -459,12 +457,13 @@ WinMain(HINSTANCE hInstance,
} while (Password[i - 1] != '\n');
Password[i - 1] =0;
#endif
if (! DoLoginUser(LoginName, Password))
{
break;
}
}
NtShutdownSystem(ShutdownNoReboot);
ExitProcess(0);
return 0;