From fc89bf6e2cc1c34d705a73613f8d15df516ec009 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Thu, 5 May 2016 00:56:11 +0200 Subject: Windows: Fix compilation error caused by previous commit --- src/Mount/Favorites.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Mount') diff --git a/src/Mount/Favorites.cpp b/src/Mount/Favorites.cpp index af5f9b0d..10eb6486 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 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]; -- cgit v1.2.3