VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/PCSCException.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2023-10-02 18:02:33 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2023-10-02 18:02:33 +0200
commitbd843ffa05147aab80e38ee668b0556302d2bfc9 (patch)
tree4521bf042ba86ddf9dc3ef9c3aae5df1df9966e9 /src/Common/PCSCException.cpp
parent5b5af85dbf47d962a5a2c0c13c9e64ae995c3810 (diff)
downloadVeraCrypt-bd843ffa05147aab80e38ee668b0556302d2bfc9.tar.gz
VeraCrypt-bd843ffa05147aab80e38ee668b0556302d2bfc9.zip
Linux: Fix compilation error on some 32-bit machines.
Diffstat (limited to 'src/Common/PCSCException.cpp')
-rw-r--r--src/Common/PCSCException.cpp7
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)