diff --git a/src/pcsc.hxx b/src/pcsc.hxx index b6ebf58..6434c6e 100644 --- a/src/pcsc.hxx +++ b/src/pcsc.hxx @@ -536,8 +536,7 @@ namespace pcsc { //! @c false if last operation was not successful operator bool() const { - //return (_state>>30&3)==0; - return _state==SCARD_S_SUCCESS; + return (_state>>30&3)==0; } //! Get the describing text of the last error