VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlollolong <65832054+lollolong@users.noreply.github.com>2024-08-05 20:52:01 +0200
committerGitHub <noreply@github.com>2024-08-05 20:52:01 +0200
commit321637e0e05a050d6dbaa8ea451250aec176be8c (patch)
tree9a380877095c54be652ef894429f6e78982dfbcd
parentd4f2176e257744e289dad205712c81846e5430e0 (diff)
downloadVeraCrypt-321637e0e05a050d6dbaa8ea451250aec176be8c.tar.gz
VeraCrypt-321637e0e05a050d6dbaa8ea451250aec176be8c.zip
Windows: disable dropdown split button in volume expander (#1389)
-rw-r--r--src/Mount/Mount.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index 444e44d7..a851ebef 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -702,7 +702,9 @@ void EnableDisableButtons (HWND hwndDlg)
case TC_MLIST_ITEM_FREE:
default:
+#if !defined(VCEXPANDER)
EnableSplitButton(hwndDlg, IDOK);
+#endif
SetWindowTextW (hOKButton, GetString ("MOUNT_BUTTON"));
// Invalid the button IDOK so that it will be redrawn
InvalidateRect (hOKButton, NULL, TRUE);
@@ -8134,6 +8136,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
}
}
}
+#if !defined(VCEXPANDER)
else
{
LPNMHDR pnmh = (LPNMHDR)lParam;
@@ -8146,6 +8149,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
DestroyMenu(hmenu);
}
}
+#endif
return 0;
case WM_ERASEBKGND: