VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-05-04 22:56:11 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-05-04 23:12:51 (GMT)
commitfc89bf6e2cc1c34d705a73613f8d15df516ec009 (patch)
treec6b5ce72210167e18a1adb505e45613d302af19b
parentb261177b8f5bc3f8495406d13dc03c0328b930f9 (diff)
downloadVeraCrypt-fc89bf6e2cc1c34d705a73613f8d15df516ec009.zip
VeraCrypt-fc89bf6e2cc1c34d705a73613f8d15df516ec009.tar.gz
Windows: Fix compilation error caused by previous commit
-rw-r--r--src/Mount/Favorites.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Mount/Favorites.cpp b/src/Mount/Favorites.cpp
index af5f9b0..10eb648 100644
--- a/src/Mount/Favorites.cpp
+++ b/src/Mount/Favorites.cpp
@@ -123,6 +123,7 @@ namespace VeraCrypt
*/
WORD lw = LOWORD (wParam);
+ WORD hw = HIWORD (wParam);
static bool SystemFavoritesMode;
static vector <FavoriteVolume> Favorites;
static int SelectedItem;
@@ -615,7 +616,7 @@ namespace VeraCrypt
XmlGetAttributeText (xml, "pin", label, sizeof (label));
}
favorite.Pim = strtol (label, NULL, 10);
- if (favorite.Pim < 0 || favorite.Pim > (systemFavorite? MAX_BOOT_PIM_VALUE : MAX_PIM_VALUE))
+ if (favorite.Pim < 0 || favorite.Pim > (systemFavorites? MAX_BOOT_PIM_VALUE : MAX_PIM_VALUE))
favorite.Pim = 0;
char boolVal[2];