mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows: use the correct window handle for creating message boxes. This became important after the introduction of the wait dialog in order to avoid having message boxes behind the wait dialog.
This commit is contained in:
@@ -398,7 +398,7 @@ BOOL CALLBACK HotkeysDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar
|
||||
// Check if it's not already assigned
|
||||
if (ShortcutInUse (currentVKeyCode, modifiers, tmpHotkeys))
|
||||
{
|
||||
Error ("SHORTCUT_ALREADY_IN_USE");
|
||||
Error ("SHORTCUT_ALREADY_IN_USE", hwndDlg);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -410,7 +410,7 @@ BOOL CALLBACK HotkeysDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar
|
||||
/* F1 is help and F12 is reserved for use by the debugger at all times */
|
||||
if (modifiers == 0)
|
||||
{
|
||||
Error ("CANNOT_USE_RESERVED_KEY");
|
||||
Error ("CANNOT_USE_RESERVED_KEY", hwndDlg);
|
||||
return 1;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user