try to use the e-health hack only for windoze; refs #22

This commit is contained in:
Marc Wäckerlin
2012-11-20 10:37:36 +00:00
parent 49ff530497
commit 9ccb074ea4

View File

@@ -536,7 +536,11 @@ namespace pcsc {
//! @c false if last operation was not successful //! @c false if last operation was not successful
operator bool() const { operator bool() const {
#ifdef WIN32
return (_state>>30&3)==0; return (_state>>30&3)==0;
#else
return _state==SCARD_S_SUCCESS;
#endif
} }
//! Get the describing text of the last error //! Get the describing text of the last error