VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Dlgcode.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2018-06-22 20:28:33 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2018-06-24 01:15:23 +0200
commiteb22f70065df7001a70b1d04c42ca1c71d1c0efc (patch)
treef4a61d801d21384419755c22b555a9074393b76c /src/Common/Dlgcode.c
parent22b9ca94b3b863c734d3733f235383b8388d61ee (diff)
downloadVeraCrypt-eb22f70065df7001a70b1d04c42ca1c71d1c0efc.tar.gz
VeraCrypt-eb22f70065df7001a70b1d04c42ca1c71d1c0efc.zip
Windows: in DEBUG mode, disable verification to Authenticode signature of binaries.
Diffstat (limited to 'src/Common/Dlgcode.c')
-rw-r--r--src/Common/Dlgcode.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index 7d2fffba..48a5e852 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -2849,7 +2849,7 @@ void InitApp (HINSTANCE hInstance, wchar_t *lpszCommandLine)
LoadSystemDll (L"Riched20.dll", &hRichEditDll, FALSE, SRC_POS);
-#if defined(NDEBUG) && !defined(SETUP)
+#if !defined(SETUP)
if (!VerifyModuleSignature (modPath))
AbortProcess ("DIST_PACKAGE_CORRUPTED");
#endif
@@ -13459,6 +13459,7 @@ static void FinalizeWintrust()
BOOL VerifyModuleSignature (const wchar_t* path)
{
+#ifdef NDEBUG
BOOL bResult = FALSE;
HRESULT hResult;
GUID gActionID = WINTRUST_ACTION_GENERIC_VERIFY_V2;
@@ -13526,6 +13527,9 @@ BOOL VerifyModuleSignature (const wchar_t* path)
FinalizeWintrust ();
return bResult;
+#else
+ return TRUE;
+#endif
}
void GetInstallationPath (HWND hwndDlg, wchar_t* szInstallPath, DWORD cchSize, BOOL* pbInstallPathDetermined)