From 2db0061741792c5303e31785d41ad07694646492 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 2 Jul 2017 14:26:15 +0200 Subject: [PATCH] Windows: set PIM of favorite to 0 only if TrueCryptMode is explicitly selected. --- src/Mount/Favorites.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));