patch-src_libopensc_internal-winscard_h 1.4 KB

12345678910111213141516171819202122232425262728293031
  1. --- opensc-0.11.13.orig/src/libopensc/internal-winscard.h 2010-02-16 10:03:28.000000000 +0100
  2. +++ opensc-0.11.13/src/libopensc/internal-winscard.h 2010-12-15 21:47:38.000000000 +0100
  3. @@ -77,7 +77,7 @@ typedef struct
  4. unsigned long cbAtr;
  5. unsigned char rgbAtr[MAX_ATR_SIZE];
  6. }
  7. -SCARD_READERSTATE_A;
  8. +SCARD_READERSTATE;
  9. typedef struct _SCARD_IO_REQUEST
  10. {
  11. @@ -87,8 +87,8 @@ typedef struct _SCARD_IO_REQUEST
  12. SCARD_IO_REQUEST, *PSCARD_IO_REQUEST, *LPSCARD_IO_REQUEST;
  13. typedef const SCARD_IO_REQUEST *LPCSCARD_IO_REQUEST;
  14. -typedef SCARD_READERSTATE_A SCARD_READERSTATE, *PSCARD_READERSTATE_A,
  15. - *LPSCARD_READERSTATE_A;
  16. +typedef SCARD_READERSTATE SCARD_READERSTATE, *PSCARD_READERSTATE,
  17. + *SCARD_READERSTATE;
  18. #endif /* HAVE_SCARD_H */
  19. @@ -113,7 +113,7 @@ typedef LONG (PCSC_API *SCardEndTransact
  20. typedef LONG (PCSC_API *SCardStatus_t)(SCARDHANDLE hCard, LPSTR mszReaderNames, LPDWORD pcchReaderLen,
  21. LPDWORD pdwState, LPDWORD pdwProtocol, LPBYTE pbAtr, LPDWORD pcbAtrLen);
  22. typedef LONG (PCSC_API *SCardGetStatusChange_t)(SCARDCONTEXT hContext, DWORD dwTimeout,
  23. - LPSCARD_READERSTATE_A rgReaderStates, DWORD cReaders);
  24. + SCARD_READERSTATE *rgReaderStates, DWORD cReaders);
  25. typedef LONG (PCSC_API *SCardControlOLD_t)(SCARDHANDLE hCard, LPCVOID pbSendBuffer, DWORD cbSendLength,
  26. LPVOID pbRecvBuffer, LPDWORD lpBytesReturned);
  27. typedef LONG (PCSC_API *SCardControl_t)(SCARDHANDLE hCard, DWORD dwControlCode, LPCVOID pbSendBuffer,