Lines 298-305
static int refresh_attributes(sc_reader_t *reader)
Link Here
|
298 |
reader->flags &= ~SC_READER_CARD_CHANGED; |
298 |
reader->flags &= ~SC_READER_CARD_CHANGED; |
299 |
SC_FUNC_RETURN(reader->ctx, SC_LOG_DEBUG_VERBOSE, SC_SUCCESS); |
299 |
SC_FUNC_RETURN(reader->ctx, SC_LOG_DEBUG_VERBOSE, SC_SUCCESS); |
300 |
} |
300 |
} |
301 |
PCSC_TRACE(reader, "SCardGetStatusChange failed", rv); |
301 |
else if (rv == (LONG)SCARD_E_UNKNOWN_READER) |
302 |
return pcsc_to_opensc_error(rv); |
302 |
{ |
|
|
303 |
/* No reader by requested name known to subsystem, lets consider the reader as detached */ |
304 |
reader->flags &= ~(SC_READER_CARD_PRESENT); |
305 |
SC_FUNC_RETURN(reader->ctx, SC_LOG_DEBUG_VERBOSE, SC_SUCCESS); |
306 |
} |
307 |
else |
308 |
{ |
309 |
PCSC_TRACE(reader, "SCardGetStatusChange failed", rv); |
310 |
return pcsc_to_opensc_error(rv); |
311 |
} |
303 |
} |
312 |
} |
304 |
state = priv->reader_state.dwEventState; |
313 |
state = priv->reader_state.dwEventState; |
305 |
prev_state = priv->reader_state.dwCurrentState; |
314 |
prev_state = priv->reader_state.dwCurrentState; |