Merge changes from https://github.com/santigimeno/node-pcsclite
This commit is contained in:
@@ -328,7 +328,7 @@ LONG PCSCLite::get_card_readers(PCSCLite* pcsclite, AsyncResult* async_result) {
|
|||||||
readers_name_length = 0;
|
readers_name_length = 0;
|
||||||
#ifndef SCARD_AUTOALLOCATE
|
#ifndef SCARD_AUTOALLOCATE
|
||||||
/* Retry in case of insufficient buffer error */
|
/* Retry in case of insufficient buffer error */
|
||||||
if (result == SCARD_E_INSUFFICIENT_BUFFER) {
|
if (result == (LONG)SCARD_E_INSUFFICIENT_BUFFER) {
|
||||||
result = get_card_readers(pcsclite, async_result);
|
result = get_card_readers(pcsclite, async_result);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user