[Pcsclite-cvs-commit] r5368 - /trunk/PCSC/src/winscard.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Oct 28 08:33:37 UTC 2010


Author: rousseau
Date: Thu Oct 28 08:33:34 2010
New Revision: 5368

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5368
Log:
Move declaration of dwAtrLen closer to where it is used.

Modified:
    trunk/PCSC/src/winscard.c

Modified: trunk/PCSC/src/winscard.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard.c?rev=5368&op=diff
==============================================================================
--- trunk/PCSC/src/winscard.c (original)
+++ trunk/PCSC/src/winscard.c Thu Oct 28 08:33:34 2010
@@ -767,7 +767,6 @@
 {
 	LONG rv;
 	READER_CONTEXT * rContext = NULL;
-	DWORD dwAtrLen;
 
 	if (hCard == 0)
 		return SCARD_E_INVALID_HANDLE;
@@ -811,6 +810,8 @@
 	if (dwDisposition == SCARD_RESET_CARD ||
 		dwDisposition == SCARD_UNPOWER_CARD)
 	{
+		DWORD dwAtrLen;
+
 		/*
 		 * Notify the card has been reset
 		 */
@@ -1030,7 +1031,6 @@
 {
 	LONG rv;
 	READER_CONTEXT * rContext = NULL;
-	DWORD dwAtrLen;
 
 	/*
 	 * Ignoring dwDisposition for now
@@ -1063,6 +1063,8 @@
 	if (dwDisposition == SCARD_RESET_CARD ||
 		dwDisposition == SCARD_UNPOWER_CARD)
 	{
+		DWORD dwAtrLen;
+
 		/*
 		 * Currently pcsc-lite keeps the card always powered
 		 */




More information about the Pcsclite-cvs-commit mailing list