From 96b39a5973d354bf759fefc13e551fb75e1c25c7 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sat, 31 Jan 2015 23:49:01 +0100 Subject: Windows: retry UAC prompt operation in case of failure. This avoids cancel the whole operation if the user is not in front of the machine during UAC prompt (this happens ofter during in-place encryption of big NTFS partitions). --- src/Common/Dlgcode.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Common/Dlgcode.c') diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index a6354fd2..d4f68134 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -8089,6 +8089,11 @@ int Error (char *stringId, HWND hwnd) return MessageBoxW (hwnd, GetString (stringId), lpszTitle, MB_ICONERROR); } +int ErrorRetryCancel (char *stringId, HWND hwnd) +{ + if (Silent) return 0; + return MessageBoxW (hwnd, GetString (stringId), lpszTitle, MB_ICONERROR | MB_RETRYCANCEL); +} int ErrorTopMost (char *stringId, HWND hwnd) { -- cgit v1.2.3