diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-04-28 23:37:56 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2015-05-03 15:47:22 +0200 |
commit | a1f1e34789d3693f821ec20cf147e2634f981249 (patch) | |
tree | b1278013a471a82856fba2488d7487bbc5eb82af /src/Common/Dlgcode.c | |
parent | eac440ae9e9d313712bef01fcd7e70ff255e0eea (diff) | |
download | VeraCrypt-a1f1e34789d3693f821ec20cf147e2634f981249.tar.gz VeraCrypt-a1f1e34789d3693f821ec20cf147e2634f981249.zip |
Windows: Modify custom window class names to less generic value in order to avoid collision with existing class names.
Diffstat (limited to 'src/Common/Dlgcode.c')
-rw-r--r-- | src/Common/Dlgcode.c | 10 |
1 files changed, 5 insertions, 5 deletions
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)
{
|