}
status = ret.ReturnCode;
-
out_fail:
free(call->szReader);
return status;
}
status = ret.ReturnCode;
-
out_fail:
free(call->szReader);
return status;
Reconnect_Return ret;
IRP* irp = operation->irp;
Reconnect_Call* call = operation->call;
- status = ret.ReturnCode = SCardReconnect(operation->hCard, call->dwShareMode,
- call->dwPreferredProtocols, call->dwInitialization, &ret.dwActiveProtocol);
+ ret.ReturnCode = SCardReconnect(operation->hCard, call->dwShareMode,
+ call->dwPreferredProtocols, call->dwInitialization, &ret.dwActiveProtocol);
smartcard_trace_reconnect_return(smartcard, &ret);
if ((status = smartcard_pack_reconnect_return(smartcard, irp->output, &ret)))
cchReaderLen = SCARD_AUTOALLOCATE;
cbAtrLen = call->cbAtrLen;
-
ZeroMemory(ret.pbAtr, 32);
status = ret.ReturnCode = SCardStatusW(operation->hCard,
call->fmszReaderNamesIsNULL ? NULL : (LPWSTR) &mszReaderNames,
if (call->cbAtrLen)
ret.cbAtrLen = cbAtrLen;
}
+
smartcard_trace_status_return(smartcard, &ret, TRUE);
if ((status = smartcard_pack_status_return(smartcard, irp->output, &ret)))
}
ret.pioRecvPci = call->pioRecvPci;
- status = ret.ReturnCode = SCardTransmit(operation->hCard, call->pioSendPci, call->pbSendBuffer,
- call->cbSendLength, ret.pioRecvPci, ret.pbRecvBuffer, &(ret.cbRecvLength));
+ ret.ReturnCode = SCardTransmit(operation->hCard, call->pioSendPci, call->pbSendBuffer,
+ call->cbSendLength, ret.pioRecvPci, ret.pbRecvBuffer, &(ret.cbRecvLength));
smartcard_trace_transmit_return(smartcard, &ret);
if ((status = smartcard_pack_transmit_return(smartcard, irp->output, &ret)))
if (!ret.pvOutBuffer)
return SCARD_E_NO_MEMORY;
- status = ret.ReturnCode = SCardControl(operation->hCard,
- call->dwControlCode, call->pvInBuffer, call->cbInBufferSize,
- ret.pvOutBuffer, call->cbOutBufferSize, &ret.cbOutBufferSize);
+ ret.ReturnCode = SCardControl(operation->hCard,
+ call->dwControlCode, call->pvInBuffer, call->cbInBufferSize,
+ ret.pvOutBuffer, call->cbOutBufferSize, &ret.cbOutBufferSize);
smartcard_trace_control_return(smartcard, &ret);
if ((status = smartcard_pack_control_return(smartcard, irp->output, &ret)))
}
cbAttrLen = call->cbAttrLen;
- status = ret.ReturnCode = SCardGetAttrib(operation->hCard, call->dwAttrId,
- autoAllocate ? (LPBYTE) & (ret.pbAttr) : ret.pbAttr, &cbAttrLen);
+ ret.ReturnCode = SCardGetAttrib(operation->hCard, call->dwAttrId,
+ autoAllocate ? (LPBYTE) & (ret.pbAttr) : ret.pbAttr, &cbAttrLen);
ret.cbAttrLen = cbAttrLen;
smartcard_trace_get_attrib_return(smartcard, &ret, call->dwAttrId);
SMARTCARD_OPERATION* operation)
{
LONG status;
- BOOL equal;
DWORD i, j, k;
GetStatusChange_Return ret;
LPSCARD_READERSTATEA state = NULL;
{
for (j = 0; j < call->cReaders; j++)
{
- equal = TRUE;
-
for (k = 0; k < call->rgAtrMasks[i].cbAtr; k++)
{
if ((call->rgAtrMasks[i].rgbAtr[k] & call->rgAtrMasks[i].rgbMask[k]) !=
(states[j].rgbAtr[k] & call->rgAtrMasks[i].rgbMask[k]))
{
- equal = FALSE;
break;
}
- if (equal)
- {
- states[j].dwEventState |= SCARD_STATE_ATRMATCH;
- }
+ states[j].dwEventState |= SCARD_STATE_ATRMATCH;
}
}
}