Merge pull request #12340 from akallabeth/smartcard-stop-fix

Smartcard stop fix
This commit is contained in:
akallabeth
2026-02-23 17:06:12 +01:00
committed by GitHub
6 changed files with 122 additions and 128 deletions

View File

@@ -120,7 +120,7 @@ static LONG smartcard_EstablishContext_Call(scard_call_context* smartcard, wStre
if (!HashTable_Insert(smartcard->rgSCardContextList, key, (void*)pContext))
{
WLog_Print(smartcard->log, WLOG_ERROR, "ListDictionary_Add failed!");
WLog_Print(smartcard->log, WLOG_ERROR, "HashTable_Insert failed!");
context_free(pContext);
return STATUS_INTERNAL_ERROR;
}
@@ -2053,6 +2053,7 @@ BOOL smartcard_call_cancel_all_context(scard_call_context* ctx)
{
WINPR_ASSERT(ctx);
smartcard_call_context_signal_stop(ctx, FALSE);
HashTable_Clear(ctx->rgSCardContextList);
return TRUE;
}