launcher: SvcInstanceCreateProcess: fix checking wrong handle

This commit is contained in:
Bill Zissimopoulos 2020-04-24 16:04:07 -07:00
parent 98f809345d
commit a0801674c4
No known key found for this signature in database
GPG Key ID: 3D4F95D52C7B3EA3

View File

@ -863,7 +863,7 @@ exit:
{
if (INVALID_HANDLE_VALUE != ParentHandles[0])
CloseHandle(ParentHandles[0]);
if (INVALID_HANDLE_VALUE != ParentHandles[0])
if (INVALID_HANDLE_VALUE != ParentHandles[1])
CloseHandle(ParentHandles[1]);
}
else if (0 != StdioHandles)