channels/smartcard: make smartcard_ListReaders(A/W)_Call return PCSC error statuses...
authorKirill Kotyagin <kirill.kotyagin@gmail.com>
Wed, 22 Jul 2015 13:56:24 +0000 (16:56 +0300)
committerKirill Kotyagin <kirill.kotyagin@gmail.com>
Wed, 22 Jul 2015 13:56:24 +0000 (16:56 +0300)
channels/smartcard/client/smartcard_operations.c

index d595bf5..2403ce9 100644 (file)
@@ -320,9 +320,6 @@ static UINT32 smartcard_ListReadersA_Call(SMARTCARD_DEVICE* smartcard, SMARTCARD
                call->mszGroups = NULL;
        }
 
-       if (status != SCARD_S_SUCCESS)
-               return status;
-
        smartcard_trace_list_readers_return(smartcard, &ret, FALSE);
        status = smartcard_pack_list_readers_return(smartcard, irp->output, &ret);
 
@@ -373,9 +370,6 @@ static UINT32 smartcard_ListReadersW_Call(SMARTCARD_DEVICE* smartcard, SMARTCARD
                call->mszGroups = NULL;
        }
 
-       if (status != SCARD_S_SUCCESS)
-               return status;
-
        smartcard_trace_list_readers_return(smartcard, &ret, TRUE);
 
        status = smartcard_pack_list_readers_return(smartcard, irp->output, &ret);