[Pcsclite-cvs-commit] PCSC/doc/example pcsc_demo.c,1.5,1.6
sauveron-guest@quantz.debian.org
sauveron-guest@quantz.debian.org
Mon, 20 Oct 2003 17:53:30 +0200
Update of /cvsroot/pcsclite/PCSC/doc/example
In directory quantz:/tmp/cvs-serv10882/doc/example
Modified Files:
pcsc_demo.c
Log Message:
Correct with the good concept
Index: pcsc_demo.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/doc/example/pcsc_demo.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- pcsc_demo.c 18 Oct 2003 20:00:01 -0000 1.5
+++ pcsc_demo.c 20 Oct 2003 15:53:28 -0000 1.6
@@ -54,7 +54,7 @@
SCARDCONTEXT hContext;
DWORD dwReaders;
LPSTR mszReaders;
- char *ptr, *readers[PCSCLITE_MAX_CHANNELS];
+ char *ptr, *readers[PCSCLITE_MAX_READERS_CONTEXTS];
int nbReaders;
SCARDHANDLE hCard;
DWORD dwActiveProtocol, dwReaderLen, dwState, dwProt, dwAtrLen;
@@ -100,7 +100,7 @@
*/
nbReaders = 0;
ptr = mszReaders;
- while ((*ptr != '\0') && (nbReaders < PCSCLITE_MAX_CHANNELS))
+ while ((*ptr != '\0') && (nbReaders < PCSCLITE_MAX_READERS_CONTEXTS))
{
printf("%d: %s\n", nbReaders, ptr);
readers[nbReaders] = ptr;