From a1f1e34789d3693f821ec20cf147e2634f981249 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 28 Apr 2015 23:37:56 +0200 Subject: Windows: Modify custom window class names to less generic value in order to avoid collision with existing class names. --- src/Common/Dlgcode.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Common/Dlgcode.c') diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index b96891c3..30b76e82 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -186,8 +186,8 @@ HMODULE hRichEditDll = NULL; #define WINDOWS_DIALOG_CLASS "#32770" /* Custom class names */ -#define TC_DLG_CLASS "CustomDlg" -#define TC_SPLASH_CLASS "SplashDlg" +#define TC_DLG_CLASS "VeraCryptCustomDlg" +#define TC_SPLASH_CLASS "VeraCryptSplashDlg" /* Benchmarks */ @@ -1532,7 +1532,7 @@ RegisterRedTick (HINSTANCE hInstance) wc.hIcon = LoadIcon (NULL, IDI_APPLICATION); wc.hCursor = NULL; wc.hbrBackground = (HBRUSH) GetStockObject (LTGRAY_BRUSH); - wc.lpszClassName = "REDTICK"; + wc.lpszClassName = "VCREDTICK"; wc.lpfnWndProc = &RedTick; rc = (ULONG) RegisterClass (&wc); @@ -1543,7 +1543,7 @@ RegisterRedTick (HINSTANCE hInstance) BOOL UnregisterRedTick (HINSTANCE hInstance) { - return UnregisterClass ("REDTICK", hInstance); + return UnregisterClass ("VCREDTICK", hInstance); } LRESULT CALLBACK @@ -2502,7 +2502,7 @@ void InitApp (HINSTANCE hInstance, char *lpszCommandLine) } } } - + /* Get the attributes for the standard dialog class */ if ((GetClassInfo (hInst, WINDOWS_DIALOG_CLASS, &wc)) == 0) { -- cgit v1.2.3