mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Commit Ctrl Event handler
svn path=/trunk/; revision=5635
This commit is contained in:
parent
c433be3d74
commit
542347bd13
1 changed files with 10 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: console.c,v 1.66 2003/08/17 22:45:40 silverblade Exp $
|
||||
/* $Id: console.c,v 1.67 2003/08/18 07:32:00 jimtabor Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -1240,6 +1240,15 @@ WINBOOL STDCALL AllocConsole(VOID)
|
|||
NTSTATUS Status;
|
||||
HANDLE hStdError;
|
||||
|
||||
if(NtCurrentPeb()->ProcessParameters->hConsole)
|
||||
{
|
||||
DPRINT("AllocConsole: Allocate duplicate console to the same Process\n");
|
||||
SetLastErrorByStatus (STATUS_OBJECT_EXISTS);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Request.Data.AllocConsoleRequest.CtrlDispatcher = (PCONTROLDISPATCHER) &ConsoleControlDispatcher;
|
||||
|
||||
Request.Type = CSRSS_ALLOC_CONSOLE;
|
||||
Status = CsrClientCallServer( &Request, &Reply, sizeof( CSRSS_API_REQUEST ), sizeof( CSRSS_API_REPLY ) );
|
||||
if( !NT_SUCCESS( Status ) || !NT_SUCCESS( Status = Reply.Status ) )
|
||||
|
|
Loading…
Reference in a new issue