mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-25 12:14:33 -04:00
[fido] use Rufus existing alert handler to close Fido's cookie prompts
* Addresses pbatard/Fido#1 while being much more effective than an all-script solution
This commit is contained in:
parent
8823c0cf9c
commit
db68bcd7f9
6 changed files with 55 additions and 37 deletions
|
@ -3152,7 +3152,7 @@ relaunch:
|
|||
ChangeWindowMessageFilter(WM_COPYGLOBALDATA, MSGFLT_ADD);
|
||||
|
||||
// Set the hook to automatically close Windows' "You need to format the disk in drive..." prompt
|
||||
if (!SetFormatPromptHook())
|
||||
if (!SetAlertPromptHook())
|
||||
uprintf("Warning: Could not set 'Format Disk' prompt auto-close");
|
||||
|
||||
ShowWindow(hDlg, SW_SHOWNORMAL);
|
||||
|
@ -3402,7 +3402,7 @@ out:
|
|||
if ((!external_loc_file) && (loc_file[0] != 0))
|
||||
DeleteFileU(loc_file);
|
||||
DestroyAllTooltips();
|
||||
ClrFormatPromptHook();
|
||||
ClrAlertPromptHook();
|
||||
exit_localization();
|
||||
safe_free(image_path);
|
||||
safe_free(locale_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue