diff options
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/PCSCException.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Common/PCSCException.cpp b/src/Common/PCSCException.cpp index 93fff181..dc5eead3 100644 --- a/src/Common/PCSCException.cpp +++ b/src/Common/PCSCException.cpp @@ -140,14 +140,17 @@ namespace VeraCrypt { Exception::Deserialize(stream); Serializer sr(stream); - sr.Deserialize("ErrorCode", ErrorCode); + int64 v; + sr.Deserialize("ErrorCode", v); + ErrorCode = (LONG_PCSC)v; } void PCSCException::Serialize(shared_ptr <Stream> stream) const { Exception::Serialize(stream); Serializer sr(stream); - sr.Serialize("ErrorCode", ErrorCode); + int64 v = (int64)ErrorCode; + sr.Serialize("ErrorCode", v); } # define TC_EXCEPTION(TYPE) TC_SERIALIZER_FACTORY_ADD(TYPE) |