Skip to content

Commit

Permalink
Revert "make sure no one can surprise us on closing this client handle"
Browse files Browse the repository at this point in the history
This reverts commit 70d0118.
  • Loading branch information
miniksa committed May 21, 2021
1 parent 4926dcb commit 6fbf822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cascadia/TerminalConnection/ConptyConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ namespace winrt::Microsoft::Terminal::TerminalConnection::implementation
_guid = Utils::CreateGuid();
}

THROW_IF_WIN32_BOOL_FALSE(DuplicateHandle(GetCurrentProcess(), hClientProcess, GetCurrentProcess(), &_piClient.hProcess, 0, FALSE, DUPLICATE_SAME_ACCESS));
_piClient.hProcess = hClientProcess;
}

ConptyConnection::ConptyConnection(const hstring& commandline,
Expand Down

1 comment on commit 6fbf822

@github-actions

This comment was marked as duplicate.

Please sign in to comment.