* security.cc (subauth): Check if Secur32.dll could be loaded.

This commit is contained in:
Corinna Vinschen
2001-05-14 14:14:19 +00:00
parent df7320e1ba
commit 5aac6665c7
2 changed files with 9 additions and 0 deletions

View File

@@ -195,6 +195,11 @@ subauth (struct passwd *pw)
set_errno (LsaNtStatusToWinError(ret));
return INVALID_HANDLE_VALUE;
}
else if (GetLastError () == ERROR_PROC_NOT_FOUND)
{
debug_printf ("Couldn't load Secur32.dll");
return INVALID_HANDLE_VALUE;
}
/* Get handle to MSV1_0 package. */
str2lsa (name, MSV1_0_PACKAGE_NAME);
ret = LsaLookupAuthenticationPackage(lsa_hdl, &name, &package_id);