VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-02 12:26:15 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-02 12:27:25 (GMT)
commit2db0061741792c5303e31785d41ad07694646492 (patch)
tree246608455a52520fdcb1fb2363ca69012298ba2f
parentd76107690343a5d85a8a90de050911db3eb1736e (diff)
downloadVeraCrypt-2db0061741792c5303e31785d41ad07694646492.zip
VeraCrypt-2db0061741792c5303e31785d41ad07694646492.tar.gz
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 0e7e66e..ed5e96e 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));