mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Opps... can't just return from a native thread proc, have to TerminateProcess()
svn path=/trunk/; revision=1461
This commit is contained in:
parent
8bdd137c8f
commit
b2b12a1d09
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: conio.c,v 1.13 2000/12/01 12:39:17 jean Exp $
|
||||
/* $Id: conio.c,v 1.14 2000/12/09 06:29:29 phreak Exp $
|
||||
*
|
||||
* reactos/subsys/csrss/api/conio.c
|
||||
*
|
||||
|
@ -519,7 +519,7 @@ VOID Console_Api( DWORD RefreshEvent )
|
|||
if( !NT_SUCCESS( Status ) )
|
||||
{
|
||||
DbgPrint( "CSR: NtCreateEvent failed: %x\n", Status );
|
||||
return;
|
||||
NtTerminateProcess( NtCurrentProcess(), Status );
|
||||
}
|
||||
Events[1] = (HANDLE)RefreshEvent;
|
||||
while( 1 )
|
||||
|
@ -555,7 +555,7 @@ VOID Console_Api( DWORD RefreshEvent )
|
|||
else if( Status != STATUS_WAIT_0 )
|
||||
{
|
||||
DbgPrint( "CSR: NtWaitForMultipleObjects failed: %x, exiting\n", Status );
|
||||
return;
|
||||
NtTerminateProcess( NtCurrentProcess(), Status );
|
||||
}
|
||||
else break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue