VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2023-09-21 22:42:35 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2023-09-21 22:42:35 +0200
commit81c87a8f0b37fb82bb9c501fd77bd30ede8f7e55 (patch)
treec981abab08b87b98873c908c40b45baf8c35fe14
parent8ccf4f98f0155c400a239b17295eafb5380b6257 (diff)
downloadVeraCrypt_1.26.6.tar.gz
VeraCrypt_1.26.6.zip
Windows: Load Riched20.dll to use RichEdit control. Use InitCommonControlsEx instead of InitCommonControlsVeraCrypt_1.26.6
-rw-r--r--src/Common/Dlgcode.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index 9cac05a9..325a2579 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -3480,6 +3480,7 @@ void InitApp (HINSTANCE hInstance, wchar_t *lpszCommandLine)
#if !defined(SETUP)
wchar_t modPath[MAX_PATH];
#endif
+ INITCOMMONCONTROLSEX InitCtrls;
InitOSVersionInfo();
@@ -3500,9 +3501,13 @@ void InitApp (HINSTANCE hInstance, wchar_t *lpszCommandLine)
InitGlobalLocks ();
- // call InitCommonControls function
+ // call InitCommonControlsEx function to initialize the common controls
+ InitCtrls.dwSize = sizeof (InitCtrls);
+ InitCtrls.dwICC = ICC_WIN95_CLASSES | ICC_PAGESCROLLER_CLASS | ICC_NATIVEFNTCTL_CLASS | ICC_STANDARD_CLASSES | ICC_LINK_CLASS;
+ InitCommonControlsEx (&InitCtrls);
- InitCommonControls();
+ // Load RichEdit library in order to be able to use RichEdit20W class
+ LoadLibraryEx (L"Riched20.dll", NULL, LOAD_LIBRARY_SEARCH_SYSTEM32);
#if !defined(SETUP)
GetModuleFileNameW (NULL, modPath, ARRAYSIZE (modPath));