mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 18:43:41 +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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
#include <wchar.h>
|
#include <wchar.h>
|
||||||
|
|
||||||
#define DBG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
/* GLOBALS ******************************************************************/
|
/* GLOBALS ******************************************************************/
|
||||||
|
@ -420,8 +420,6 @@ WinMain(HINSTANCE hInstance,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Main loop */
|
/* Main loop */
|
||||||
for (;;)
|
|
||||||
{
|
|
||||||
#if 0
|
#if 0
|
||||||
/* Display login prompt */
|
/* Display login prompt */
|
||||||
WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE),
|
WriteConsole(GetStdHandle(STD_OUTPUT_HANDLE),
|
||||||
|
@ -459,12 +457,13 @@ WinMain(HINSTANCE hInstance,
|
||||||
} while (Password[i - 1] != '\n');
|
} while (Password[i - 1] != '\n');
|
||||||
Password[i - 1] =0;
|
Password[i - 1] =0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (! DoLoginUser(LoginName, Password))
|
if (! DoLoginUser(LoginName, Password))
|
||||||
{
|
{
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NtShutdownSystem(ShutdownNoReboot);
|
||||||
|
|
||||||
ExitProcess(0);
|
ExitProcess(0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue