From 49ff530497d22bef2e16b3dc65bc2dc99b3230b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Fri, 16 Nov 2012 14:24:37 +0000 Subject: [PATCH] requested by Laurent Pages: Indeed the smartcard detection on Windows does not work properly; refs #22 --- src/pcsc.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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