mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Added basic support for console handles in DuplicateHandle.
svn path=/trunk/; revision=2923
This commit is contained in:
parent
8b88e468e5
commit
deb8a30fce
1 changed files with 15 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: handle.c,v 1.5 2000/07/01 17:07:00 ea Exp $
|
||||
/* $Id: handle.c,v 1.6 2002/05/07 22:24:52 hbirr Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
|
@ -121,7 +121,20 @@ WINBOOL STDCALL DuplicateHandle(HANDLE hSourceProcessHandle,
|
|||
DWORD dwOptions)
|
||||
{
|
||||
NTSTATUS errCode;
|
||||
|
||||
if (IsConsoleHandle(hSourceHandle))
|
||||
{
|
||||
/* FIXME: call CSRSS for console handle duplication */
|
||||
if (hSourceProcessHandle == hTargetProcessHandle)
|
||||
{
|
||||
*lpTargetHandle = hSourceHandle;
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
errCode = NtDuplicateObject(hSourceProcessHandle,
|
||||
hSourceHandle,
|
||||
hTargetProcessHandle,
|
||||
|
|
Loading…
Reference in a new issue