~ubuntu-branches/ubuntu/lucid/pcsc-lite/lucid-security

« back to all changes in this revision

Viewing changes to src/winscard.c

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Rousseau
  • Date: 2007-06-19 21:19:54 UTC
  • mfrom: (1.2.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070619211954-h5jtokimr8wrw3oj
Tags: 1.4.3-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *  David Corcoran <corcoran@linuxnet.com>
6
6
 *  Ludovic Rousseau <ludovic.rousseau@free.fr>
7
7
 *
8
 
 * $Id: winscard.c 2545 2007-05-23 14:27:12Z rousseau $
 
8
 * $Id: winscard.c 2567 2007-06-18 14:44:57Z rousseau $
9
9
 */
10
10
 
11
11
/**
341
341
                SYS_USleep(PCSCLITE_STATUS_POLL_RATE + 10);
342
342
        }
343
343
 
 
344
        /* the reader has been removed while we were waiting */
 
345
        if (NULL == rContext->readerState)
 
346
                return SCARD_E_NO_SMARTCARD;
 
347
 
344
348
        /*******************************************
345
349
         *
346
350
         * This section tries to determine the
830
834
                Log1(PCSC_LOG_INFO, "Lock released");
831
835
        }
832
836
 
 
837
        /* the reader has been removed while we were waiting */
 
838
        if (NULL == rContext->readerState)
 
839
                return SCARD_E_NO_SMARTCARD;
 
840
 
833
841
        /*
834
842
         * Unlock any blocks on this context
835
843
         */
1208
1216
        LONG rv;
1209
1217
        PREADER_CONTEXT rContext = NULL;
1210
1218
 
 
1219
        if (hCard == 0)
 
1220
                return SCARD_E_INVALID_HANDLE;
 
1221
 
1211
1222
        rv = RFReaderInfoById(hCard, &rContext);
1212
1223
 
1213
1224
        /*