fixed build with pcsc-lite

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@377 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2010-12-10 18:50:21 +00:00
parent d4be5cfad1
commit 40d2c10333

View File

@@ -41,7 +41,7 @@ pcsc_connect(unsigned int readernum, DWORD dwShareMode, DWORD dwPreferredProtoco
readerslen = SCARD_AUTOALLOCATE;
r = SCardListReaders(*phContext, NULL, (LPCWSTR) readers, &readerslen);
r = SCardListReaders(*phContext, NULL, (LPTSTR) readers, &readerslen);
if (r != SCARD_S_SUCCESS) {
fprintf(stderr, "Could not get readers\n");
goto err;
@@ -60,7 +60,7 @@ pcsc_connect(unsigned int readernum, DWORD dwShareMode, DWORD dwPreferredProtoco
}
r = SCardConnect(*phContext, (LPCWSTR) reader, dwShareMode, dwPreferredProtocols,
r = SCardConnect(*phContext, reader, dwShareMode, dwPreferredProtocols,
phCard, pdwActiveProtocol);
if (r != SCARD_S_SUCCESS) {
fprintf(stderr, "Could not connect to %s\n", reader);