VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-02 14:26:15 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-02 14:27:25 +0200
commit2db0061741792c5303e31785d41ad07694646492 (patch)
tree246608455a52520fdcb1fb2363ca69012298ba2f
parentd76107690343a5d85a8a90de050911db3eb1736e (diff)
downloadVeraCrypt-2db0061741792c5303e31785d41ad07694646492.tar.gz
VeraCrypt-2db0061741792c5303e31785d41ad07694646492.zip
Windows: set PIM of favorite to 0 only if TrueCryptMode is explicitly selected.
-rw-r--r--src/Mount/Favorites.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mount/Favorites.cpp b/src/Mount/Favorites.cpp
index 0e7e66e2..ed5e96e0 100644
--- a/src/Mount/Favorites.cpp
+++ b/src/Mount/Favorites.cpp
@@ -678,7 +678,7 @@ namespace VeraCrypt
else
favorite.TrueCryptMode = -1;
- if (favorite.TrueCryptMode)
+ if (favorite.TrueCryptMode > 0)
favorite.Pim = 0;
XmlGetAttributeText (xml, "pkcs5", label, sizeof (label));