diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2018-06-19 12:49:30 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2018-06-19 12:49:30 -0500 |
| commit | 61f3916b4ae51480b783a4f137f7456b4731b2b9 (patch) | |
| tree | fd0b1aade307f604989e911299bbab4ec5a906b5 /src/device/device_ledger.cpp | |
| parent | 1db8cf0db9a3456c962ce9c7e626ec50b8a26d9a (diff) | |
| parent | f17383afc2cd3854cc2071bcc801dd912efc1212 (diff) | |
| download | monzero-core-61f3916b4ae51480b783a4f137f7456b4731b2b9.tar.gz monzero-core-61f3916b4ae51480b783a4f137f7456b4731b2b9.tar.xz monzero-core-61f3916b4ae51480b783a4f137f7456b4731b2b9.zip | |
Merge pull request #3844
bdf5a3a Fix PCSC compilation under windows (cslashm)
f17383a Fix CMAKE config for PCSC in order to avoid msys DLL dependencies (cslashm)
Diffstat (limited to 'src/device/device_ledger.cpp')
| -rw-r--r-- | src/device/device_ledger.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/device/device_ledger.cpp b/src/device/device_ledger.cpp index 3b9ab6744..aedaf8382 100644 --- a/src/device/device_ledger.cpp +++ b/src/device/device_ledger.cpp @@ -48,6 +48,15 @@ namespace hw { /* ===================================================================== */ /* === Debug ==== */ /* ===================================================================== */ + #ifdef WIN32 + static char *pcsc_stringify_error(LONG rv) { + static __thread char out[20]; + sprintf_s(out, sizeof(out), "0x%08lX", rv); + + return out; + } + #endif + void set_apdu_verbose(bool verbose) { apdu_verbose = verbose; } |
