VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/SecurityToken.cpp
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2024-11-15 00:41:07 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2024-11-15 00:41:07 +0100
commit43ad4f93eb2c64bb2c278cdbefdfe0250293868e (patch)
tree838b3dd1d2ff69c3e7d162d0347d08435c745cb5 /src/Common/SecurityToken.cpp
parent117d8dd046fcfc8e85c8aadf96556eb9f445695c (diff)
downloadVeraCrypt-43ad4f93eb2c64bb2c278cdbefdfe0250293868e.tar.gz
VeraCrypt-43ad4f93eb2c64bb2c278cdbefdfe0250293868e.zip
Windows: Fix various compiler warnings
Diffstat (limited to 'src/Common/SecurityToken.cpp')
-rw-r--r--src/Common/SecurityToken.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/SecurityToken.cpp b/src/Common/SecurityToken.cpp
index 2a8222e6..cd4926a0 100644
--- a/src/Common/SecurityToken.cpp
+++ b/src/Common/SecurityToken.cpp
@@ -220,7 +220,7 @@ namespace VeraCrypt
throw;
}
- foreach(const CK_OBJECT_HANDLE & dataHandle, GetObjects(slotId, CKO_DATA))
+ for(const CK_OBJECT_HANDLE & dataHandle: GetObjects(slotId, CKO_DATA))
{
SecurityTokenKeyfile keyfile;
keyfile.Handle = dataHandle;
@@ -348,7 +348,7 @@ namespace VeraCrypt
while (true)
{
CK_OBJECT_HANDLE object;
- CK_RV status = Pkcs11Functions->C_FindObjects(Sessions[slotId].Handle, &object, 1, &objectCount);
+ status = Pkcs11Functions->C_FindObjects(Sessions[slotId].Handle, &object, 1, &objectCount);
if (status != CKR_OK)
throw Pkcs11Exception(status);