patch-src_libopensc_reader-pcsc_c 1.0 KB

1234567891011121314151617181920212223242526272829
  1. --- opensc-0.11.13.orig/src/libopensc/reader-pcsc.c 2010-02-16 10:03:28.000000000 +0100
  2. +++ opensc-0.11.13/src/libopensc/reader-pcsc.c 2010-12-15 21:44:53.000000000 +0100
  3. @@ -80,7 +80,7 @@ struct pcsc_private_data {
  4. struct pcsc_slot_data {
  5. SCARDHANDLE pcsc_card;
  6. - SCARD_READERSTATE_A reader_state;
  7. + SCARD_READERSTATE reader_state;
  8. DWORD verify_ioctl;
  9. DWORD verify_ioctl_start;
  10. DWORD verify_ioctl_finish;
  11. @@ -353,7 +353,7 @@ static int pcsc_wait_for_event(sc_reader
  12. sc_context_t *ctx;
  13. SCARDCONTEXT pcsc_ctx;
  14. LONG ret;
  15. - SCARD_READERSTATE_A rgReaderStates[SC_MAX_READERS];
  16. + SCARD_READERSTATE rgReaderStates[SC_MAX_READERS];
  17. unsigned long on_bits, off_bits;
  18. time_t end_time, now, delta;
  19. size_t i;
  20. @@ -401,7 +401,7 @@ static int pcsc_wait_for_event(sc_reader
  21. /* Wait for a status change and return if it's a card insert/removal
  22. */
  23. for( ; ; ) {
  24. - SCARD_READERSTATE_A *rsp;
  25. + SCARD_READERSTATE *rsp;
  26. /* Scan the current state of all readers to see if they
  27. * match any of the events we're polling for */