fixed getstatuschangeA rdp-return value in case of failure

This commit is contained in:
erbth 2014-06-11 21:45:53 +02:00
parent 33b4407314
commit 19397d47fd

View File

@ -388,8 +388,9 @@ static UINT32 smartcard_GetStatusChangeA_Call(SMARTCARD_DEVICE* smartcard, SMART
status = ret.ReturnCode = SCardGetStatusChangeA(operation->hContext, call->dwTimeOut, call->rgReaderStates, call->cReaders);
if (status && (status != SCARD_E_TIMEOUT) && (status != SCARD_E_CANCELLED))
return status;
if (status && (status != SCARD_E_TIMEOUT) && (status != SCARD_E_CANCELLED)){
call->cReaders=0;
}
ret.cReaders = call->cReaders;
ret.rgReaderStates = (ReaderState_Return*) calloc(ret.cReaders, sizeof(ReaderState_Return));