Cygwin: lsaauth: Drop outdated test for loading Secur32.dll
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
02373d8bec
commit
c524a915a5
|
@ -1061,7 +1061,6 @@ lsaauth (cygsid &usersid, user_groups &new_groups)
|
||||||
|
|
||||||
/* Register as logon process. */
|
/* Register as logon process. */
|
||||||
RtlInitAnsiString (&name, "Cygwin");
|
RtlInitAnsiString (&name, "Cygwin");
|
||||||
SetLastError (0);
|
|
||||||
status = LsaRegisterLogonProcess (&name, &lsa_hdl, &sec_mode);
|
status = LsaRegisterLogonProcess (&name, &lsa_hdl, &sec_mode);
|
||||||
if (status != STATUS_SUCCESS)
|
if (status != STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
|
@ -1069,11 +1068,6 @@ lsaauth (cygsid &usersid, user_groups &new_groups)
|
||||||
__seterrno_from_nt_status (status);
|
__seterrno_from_nt_status (status);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
else if (GetLastError () == ERROR_PROC_NOT_FOUND)
|
|
||||||
{
|
|
||||||
debug_printf ("Couldn't load Secur32.dll");
|
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
/* Get handle to our own LSA package. */
|
/* Get handle to our own LSA package. */
|
||||||
RtlInitAnsiString (&name, CYG_LSA_PKGNAME);
|
RtlInitAnsiString (&name, CYG_LSA_PKGNAME);
|
||||||
status = LsaLookupAuthenticationPackage (lsa_hdl, &name, &package_id);
|
status = LsaLookupAuthenticationPackage (lsa_hdl, &name, &package_id);
|
||||||
|
|
Loading…
Reference in New Issue