corrections
This commit is contained in:
@@ -31,6 +31,7 @@ namespace pcsc {
|
||||
#else
|
||||
#include <PCSC/pcsclite.h>
|
||||
#include <PCSC/wintypes.h>
|
||||
#include <PCSC/winscard.h>
|
||||
namespace pcsc {
|
||||
const std::string& strconv(const std::string& s) {
|
||||
return s;
|
||||
@@ -403,6 +404,7 @@ namespace pcsc {
|
||||
|
||||
//! Get the describing text of the last error
|
||||
std::string error() const {
|
||||
#ifdef WIN32
|
||||
std::stringstream ss;
|
||||
switch (_state) {
|
||||
case ERROR_BROKEN_PIPE:
|
||||
@@ -634,6 +636,9 @@ namespace pcsc {
|
||||
<<(_state&0xffff);
|
||||
}
|
||||
return ss.str();
|
||||
#else
|
||||
return pcsc_stringify_error(_state);
|
||||
#endif
|
||||
}
|
||||
|
||||
//................................................................methods
|
||||
|
Reference in New Issue
Block a user