From b0b32734ad3ba6cd504e35b18c6567d49cbe9e7c Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 4 Oct 2016 09:00:00 +0200 Subject: [PATCH] Reformatted file. --- channels/smartcard/client/smartcard_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/channels/smartcard/client/smartcard_main.c b/channels/smartcard/client/smartcard_main.c index 905aadd12..9b046378f 100644 --- a/channels/smartcard/client/smartcard_main.c +++ b/channels/smartcard/client/smartcard_main.c @@ -235,11 +235,12 @@ static void smartcard_release_all_contexts(SMARTCARD_DEVICE* smartcard) { SCardReleaseContext(hContext); - if (MessageQueue_PostQuit(pContext->IrpQueue, 0) && (WaitForSingleObject(pContext->thread, INFINITE) == WAIT_FAILED)) + if (MessageQueue_PostQuit(pContext->IrpQueue, 0) + && (WaitForSingleObject(pContext->thread, INFINITE) == WAIT_FAILED)) WLog_ERR(TAG, "WaitForSingleObject failed with error %lu!", GetLastError()); CloseHandle(pContext->thread); - MessageQueue_Free(pContext->IrpQueue); + MessageQueue_Free(pContext->IrpQueue); free(pContext); } } @@ -644,6 +645,7 @@ static void* smartcard_thread_func(void* arg) error = CHANNEL_RC_OK; goto out; } + WLog_ERR(TAG, "smartcard_complete_irp failed with error %lu!", error); goto out; }