From a8112b8373a9cd9c4c481895179f6b31db33d967 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 27 Dec 2014 11:18:58 +0100 Subject: 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. --- src/Mount/Hotkeys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Mount/Hotkeys.c') diff --git a/src/Mount/Hotkeys.c b/src/Mount/Hotkeys.c index 34f980eb..0848155e 100644 --- a/src/Mount/Hotkeys.c +++ b/src/Mount/Hotkeys.c @@ -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; -- cgit v1.2.3