htcs: fix magic template argument deduction, do Close/Connect/Bind

This commit is contained in:
Michael Scire 2021-02-18 04:15:23 -08:00 committed by SciresM
parent f71943c03a
commit 0c791f2279
8 changed files with 135 additions and 23 deletions

View file

@ -58,8 +58,7 @@ namespace ams::htcs::impl {
void HtcsManager::Close(s32 *out_err, s32 *out_res, s32 desc) {
/* Invoke our implementation. */
s32 err;
const Result result = m_impl->DestroySocket(std::addressof(err), desc);
const Result result = m_impl->DestroySocket(desc);
/* Set output. */
*out_err = ConvertResultToErrorCode(result);