Diff

Differences From Artifact [6db8eb96eb]:

To Artifact [efec2691f8]:


  3370   3370   
  3371   3371   	CACKEY_DEBUG_PRINTF("Calling SCardStatus() to determine card status");
  3372   3372   
  3373   3373   	atr_len = sizeof(atr);
  3374   3374   	status_ret = SCardStatus(slot->pcsc_card, NULL, &reader_len, &state, &protocol, atr, &atr_len);
  3375   3375   
  3376   3376   	if (status_ret == SCARD_E_INVALID_HANDLE) {
  3377         -		CACKEY_DEBUG_PRINTF("SCardStatus() returned SCARD_E_INVALID_HANDLE, marking is not already connected and trying again");
         3377  +		CACKEY_DEBUG_PRINTF("SCardStatus() returned SCARD_E_INVALID_HANDLE, marking as not already connected and trying again");
  3378   3378   		cackey_mark_slot_reset(slot);
  3379   3379   
  3380   3380   		pcsc_connect_ret = cackey_connect_card(slot);
  3381   3381   		if (pcsc_connect_ret != CACKEY_PCSC_S_OK) {
  3382   3382   			CACKEY_DEBUG_PRINTF("Unable to connect to card, returning token absent");
  3383   3383   
  3384   3384   			return(CACKEY_PCSC_E_TOKENABSENT);