From be485c959856311853303f5633687adb1efc5109 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 13 Jun 2005 15:30:42 +0000 Subject: [PATCH] windows-logon-20050613 fix the return value of IsServiceStartPending. use IsServiceRunning and IsServiceStartPending in the while loop --- src/WINNT/afsd/afslogon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WINNT/afsd/afslogon.c b/src/WINNT/afsd/afslogon.c index 724231e17..d955e6c2d 100644 --- a/src/WINNT/afsd/afslogon.c +++ b/src/WINNT/afsd/afslogon.c @@ -279,7 +279,7 @@ BOOL IsServiceStartPending (void) CloseServiceHandle (hManager); } DebugEvent("AFS AfsLogon - Test Service Start Pending","Return Code[%x] ?Start Pending[%d]",Status.dwCurrentState,(Status.dwCurrentState == SERVICE_START_PENDING)); - return (Status.dwCurrentState == SERVICE_RUNNING); + return (Status.dwCurrentState == SERVICE_START_PENDING); } /* LOOKUPKEYCHAIN: macro to look up the value in the list of keys in order until it's found @@ -781,7 +781,7 @@ DWORD APIENTRY NPLogonNotify( } /* loop until AFS is started. */ - while (afsWillAutoStart) { + while (IsServiceRunning() || IsServiceStartPending()) { DebugEvent("while(autostart) LogonOption[%x], Service AutoStart[%d]", opt.LogonOption,afsWillAutoStart); -- 2.39.5