FreeCalypso > hg > fc-pcsc-tools
comparison libcommon/cardconnect.c @ 35:360d07419357
better error message for non-existent reader request
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Fri, 12 Feb 2021 17:40:21 +0000 |
| parents | 8a4f3d00d997 |
| children |
comparison
equal
deleted
inserted
replaced
| 34:91bcf84a5323 | 35:360d07419357 |
|---|---|
| 69 return(0); | 69 return(0); |
| 70 } | 70 } |
| 71 cp += strlen(cp) + 1; | 71 cp += strlen(cp) + 1; |
| 72 } | 72 } |
| 73 fprintf(stderr, | 73 fprintf(stderr, |
| 74 "error: requested reader #%u, but only %u readers found\n", | 74 "error: requested reader #%u, but only %u reader(s) found\n", |
| 75 select_reader_num, num); | 75 select_reader_num, num); |
| 76 SCardReleaseContext(hContext); | 76 SCardReleaseContext(hContext); |
| 77 exit(1); | 77 exit(1); |
| 78 } | 78 } |
| 79 | 79 |
