mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Don't try to duplicate NULL handles.
svn path=/trunk/; revision=14167
This commit is contained in:
parent
a384c6e670
commit
310a5bcfb7
1 changed files with 3 additions and 3 deletions
|
@ -1289,7 +1289,7 @@ CreateProcessW
|
|||
}
|
||||
|
||||
/* Now duplicate handles if required */
|
||||
if (InputDup)
|
||||
if (InputDup && Ppb->hStdInput != NULL)
|
||||
{
|
||||
if (IsConsoleHandle(Ppb->hStdInput))
|
||||
{
|
||||
|
@ -1312,7 +1312,7 @@ CreateProcessW
|
|||
}
|
||||
}
|
||||
|
||||
if (OutputDup)
|
||||
if (OutputDup && Ppb->hStdOutput != NULL)
|
||||
{
|
||||
if (IsConsoleHandle(Ppb->hStdOutput))
|
||||
{
|
||||
|
@ -1335,7 +1335,7 @@ CreateProcessW
|
|||
}
|
||||
}
|
||||
|
||||
if (ErrorDup)
|
||||
if (ErrorDup && Ppb->hStdError != NULL)
|
||||
{
|
||||
if (IsConsoleHandle(Ppb->hStdError))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue