diff --git a/channels/smartcard/client/smartcard_pack.c b/channels/smartcard/client/smartcard_pack.c index 1955688a4..7fe5e42e1 100644 --- a/channels/smartcard/client/smartcard_pack.c +++ b/channels/smartcard/client/smartcard_pack.c @@ -1326,7 +1326,6 @@ UINT32 smartcard_unpack_get_status_change_w_call(SMARTCARD_DEVICE* smartcard, wS UINT32 szReaderNdrPtr; UINT32 rgReaderStatesNdrPtr; LPSCARD_READERSTATEW readerState; - char *szReader = NULL; call->rgReaderStates = NULL; @@ -1429,13 +1428,6 @@ UINT32 smartcard_unpack_get_status_change_w_call(SMARTCARD_DEVICE* smartcard, wS WLog_Print(smartcard->log, WLOG_WARN, "GetStatusChangeW_Call null reader name"); return STATUS_INVALID_PARAMETER; } - - ConvertFromUnicode(CP_UTF8, 0, readerState->szReader, -1, - (char**) &(szReader), 0, NULL, NULL); - if (strcmp(szReader, "\\\\?PnP?\\Notification") == 0) { - readerState->dwCurrentState |= SCARD_STATE_IGNORE; - } - free(szReader); } } @@ -1938,12 +1930,6 @@ UINT32 smartcard_unpack_control_call(SMARTCARD_DEVICE* smartcard, wStream* s, Co Stream_Read_UINT32(s, call->fpvOutBufferIsNULL); /* fpvOutBufferIsNULL (4 bytes) */ Stream_Read_UINT32(s, call->cbOutBufferSize); /* cbOutBufferSize (4 bytes) */ - /*if (call->dwControlCode == 0x00310D4C) - { - printf("Why ?\n"); - call->dwControlCode = 0x00313538; - }*/ - status = smartcard_unpack_redir_scard_context_ref(smartcard, s, &(call->hContext)); if (status)