From: Jeffrey Altman Date: Tue, 19 Jun 2012 01:45:39 +0000 (-0400) Subject: Windows: afslogon make error dialog system modal X-Git-Tag: upstream/1.8.0_pre1^2~2286 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ae5aba17cc5d45805f7d263fd645fba0d3bb5116;p=packages%2Fo%2Fopenafs.git Windows: afslogon make error dialog system modal Prevent error dialogs from getting lost behind the desktop during logon. Make them system modal. Add a warning icon as well. Change-Id: I63aa89d130af18846c86abe4a3327bf7b87e3058 Reviewed-on: http://gerrit.openafs.org/7630 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsd/afslogon.c b/src/WINNT/afsd/afslogon.c index 294b7c2ee..3bddbe91d 100644 --- a/src/WINNT/afsd/afslogon.c +++ b/src/WINNT/afsd/afslogon.c @@ -1165,10 +1165,12 @@ NPLogonNotify( HANDLE h; char *ptbuf[1]; + DebugEvent("Integrated login failed: %s", reason); + StringCbPrintf(msg, sizeof(msg), "Integrated login failed: %s", reason); if (ISLOGONINTEGRATED(opt.LogonOption) && interactive && !opt.failSilently) - MessageBox(hwndOwner, msg, "AFS Logon", MB_OK); + MessageBox(hwndOwner, msg, "AFS Logon", MB_OK|MB_ICONWARNING|MB_SYSTEMMODAL); h = RegisterEventSource(NULL, AFS_LOGON_EVENT_NAME); ptbuf[0] = msg;