mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:13:06 +00:00
Shutdown after shell exit
svn path=/trunk/; revision=4380
This commit is contained in:
parent
a4907447eb
commit
6aa0e3b90d
1 changed files with 42 additions and 43 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue