|
From: <lu...@us...> - 2011-10-22 18:21:31
|
Revision: 582
http://pyscard.svn.sourceforge.net/pyscard/?rev=582&view=rev
Author: ludov
Date: 2011-10-22 18:21:25 +0000 (Sat, 22 Oct 2011)
Log Message:
-----------
Update MAX_BUFFER_SIZE_EXTENDED
For PCSCLITE add 2 bytes for SW
For Windows add 10 bytes for header, Lc and Le
Modified Paths:
--------------
trunk/pyscard/src/smartcard/scard/scard.i
Modified: trunk/pyscard/src/smartcard/scard/scard.i
===================================================================
--- trunk/pyscard/src/smartcard/scard/scard.i 2011-10-22 17:35:00 UTC (rev 581)
+++ trunk/pyscard/src/smartcard/scard/scard.i 2011-10-22 18:21:25 UTC (rev 582)
@@ -185,12 +185,12 @@
#endif
// undefined on older releases
#ifndef MAX_BUFFER_SIZE_EXTENDED
- #define MAX_BUFFER_SIZE_EXTENDED (4 + 3 + (1<<16) + 3)
+ #define MAX_BUFFER_SIZE_EXTENDED (4 + 3 + (1<<16) + 3 + 2)
#endif
#else // !PCSCLITE
// SCARD_CTL_CODE defined in WinSmCrd.h included by Win32 winscard.h
// MAX_BUFFER_SIZE_EXTENDED is pcsc-lite specific
-#define MAX_BUFFER_SIZE_EXTENDED (1<<16)+2
+#define MAX_BUFFER_SIZE_EXTENDED (4 + 3 + (1<<16) + 3 + 2)
#endif //PCSCLITE
#include "pcsctypes.h"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|