mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Don't try to duplicate NULL handles.
svn path=/trunk/; revision=14167
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user