]> 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>
Tue, 3 Jul 2012 15:07:07 +0000 (08:07 -0700)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsd/afslogon.c

index 294b7c2ee6b93c622df3a7304b60df720685bbfc..3bddbe91de994b55f7cbef1a14b1289b3000ae50 100644 (file)
@@ -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;