]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Windows: afslogon make error dialog system modal
authorJeffrey Altman <jaltman@your-file-system.com>
Tue, 19 Jun 2012 01:45:39 +0000 (21:45 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Fri, 7 Dec 2012 00:40:57 +0000 (16:40 -0800)
Prevent error dialogs from getting lost behind the desktop
during logon.  Make them system modal.  Add a warning icon
as well.

Reviewed-on: http://gerrit.openafs.org/7630
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit ae5aba17cc5d45805f7d263fd645fba0d3bb5116)

Change-Id: If5031c21b008306f1179cb460b39fc7d3662fbd0
Reviewed-on: http://gerrit.openafs.org/8630
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsd/afslogon.c

index 1bcadfd5127469612f0172b06630fb0c98454367..16f98d89566d9ca528962b59ead184e71e730ea9 100644 (file)
@@ -1160,10 +1160,12 @@ DWORD APIENTRY 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;