Commit d7a0887
committed
Improve SCardReleaseContext fix
From Maksim Ivanov:
SCARD_E_READER_UNAVAILABLE can be returned by RFReaderInfoById(): it's a
corner case when the reader context is still there, but has a zero
reference count.
See RFReaderInfoById() using the REF_READER macro, which calls
_RefReader() (and returns its error code on error), which in turn has
this code:
if (0 == sReader->reference)
return SCARD_E_READER_UNAVAILABLE;1 parent d0e5947 commit d7a0887
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
891 | 891 | | |
892 | 892 | | |
893 | 893 | | |
894 | | - | |
| 894 | + | |
| 895 | + | |
895 | 896 | | |
896 | 897 | | |
897 | 898 | | |
| |||
0 commit comments