- Fix for last commit. It now compiles, at least.

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@650 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
jey 2002-06-14 11:43:22 +00:00
parent ed19095c71
commit a94d1b26fb
1 changed files with 3 additions and 3 deletions

View File

@ -106,6 +106,7 @@ static int pcsc_transmit(struct sc_reader *reader, struct sc_slot_info *slot,
LONG rv;
SCARDHANDLE card;
struct pcsc_slot_data *pslot = GET_SLOT_DATA(slot);
struct pcsc_private_data *prv = GET_PRIV_DATA(reader);
assert(pslot != NULL);
card = pslot->pcsc_card;
@ -115,7 +116,7 @@ static int pcsc_transmit(struct sc_reader *reader, struct sc_slot_info *slot,
sRecvPci.dwProtocol = opensc_proto_to_pcsc(slot->active_protocol);
sRecvPci.cbPciLength = 0;
if (reader->gpriv->apdu_fix && sendsize >= 6) {
if (prv->gpriv->apdu_fix && sendsize >= 6) {
/* Check if the APDU in question is of Case 4 */
const u8 *p = sendbuf;
int lc;
@ -308,10 +309,9 @@ static int pcsc_init(struct sc_context *ctx, void **reader_data)
char *reader_buf, *p;
LPCSTR mszGroups = NULL;
SCARDCONTEXT pcsc_ctx;
int r;
int r, i, apdu_fix;
struct pcsc_global_private_data *gpriv;
scconf_block **blocks = NULL, *conf_block = NULL;
int apdu_fix;
rv = SCardEstablishContext(SCARD_SCOPE_GLOBAL, "localhost", NULL,
&pcsc_ctx);