VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-12-20 14:59:57 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-12-20 15:31:22 +0100
commit02cbecff6450f37498c558c1352550d647bffdfa (patch)
tree4da0944db9e2a01c4e36ed128fc00fc7583c124f
parentfbe1bbaffdac28b2f6868d2b2a4656d96d089371 (diff)
downloadVeraCrypt-02cbecff6450f37498c558c1352550d647bffdfa.tar.gz
VeraCrypt-02cbecff6450f37498c558c1352550d647bffdfa.zip
Windows: Add a donation menu entry
-rw-r--r--src/Common/Language.xml1
-rw-r--r--src/Mount/Mount.c6
-rw-r--r--src/Mount/Mount.rc1
-rw-r--r--src/Mount/Resource.h3
4 files changed, 10 insertions, 1 deletions
diff --git a/src/Common/Language.xml b/src/Common/Language.xml
index 2ced0359..c4ea0562 100644
--- a/src/Common/Language.xml
+++ b/src/Common/Language.xml
@@ -200,6 +200,7 @@
<control lang="en" key="IDM_CREATE_RESCUE_DISK">Create Rescue Disk...</control>
<control lang="en" key="IDM_CREATE_VOLUME">Create New Volume...</control>
<control lang="en" key="IDM_DEFAULT_KEYFILES">Default Keyfiles...</control>
+ <control lang="en" key="IDM_DONATE">Donate now...</control>
<control lang="en" key="IDM_ENCRYPT_SYSTEM_DEVICE">Encrypt System Partition/Drive...</control>
<control lang="en" key="IDM_FAQ">Frequently Asked Questions</control>
<control lang="en" key="IDM_HELP">User's Guide</control>
diff --git a/src/Mount/Mount.c b/src/Mount/Mount.c
index f6fa82fa..969b43dc 100644
--- a/src/Mount/Mount.c
+++ b/src/Mount/Mount.c
@@ -6274,6 +6274,12 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
return 1;
}
+ if (lw == IDM_DONATE)
+ {
+ Applink ("donate", TRUE, "");
+ return 1;
+ }
+
if (lw == IDM_LICENSE)
{
TextInfoDialogBox (TC_TBXID_LEGAL_NOTICES);
diff --git a/src/Mount/Mount.rc b/src/Mount/Mount.rc
index 8851646e..c0626df5 100644
--- a/src/Mount/Mount.rc
+++ b/src/Mount/Mount.rc
@@ -609,6 +609,7 @@ BEGIN
MENUITEM SEPARATOR
MENUITEM "Analyze a System Crash...", IDM_ANALYZE_SYSTEM_CRASH
MENUITEM SEPARATOR
+ MENUITEM "Donate now...", IDM_DONATE
MENUITEM "Contact", IDM_CONTACT
MENUITEM "Legal Notices", IDM_LICENSE
MENUITEM "About", IDM_ABOUT
diff --git a/src/Mount/Resource.h b/src/Mount/Resource.h
index bf64cee2..5426d2ae 100644
--- a/src/Mount/Resource.h
+++ b/src/Mount/Resource.h
@@ -223,6 +223,7 @@
#define IDM_ADD_VOLUME_TO_SYSTEM_FAVORITES 40061
#define IDM_PERFORMANCE_SETTINGS 40062
#define IDM_ANALYZE_SYSTEM_CRASH 40063
+#define IDM_DONATE 40064
// Next default values for new objects
//
@@ -230,7 +231,7 @@
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
#define _APS_NEXT_RESOURCE_VALUE 118
-#define _APS_NEXT_COMMAND_VALUE 40064
+#define _APS_NEXT_COMMAND_VALUE 40065
#define _APS_NEXT_CONTROL_VALUE 1140
#define _APS_NEXT_SYMED_VALUE 101
#endif