Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2019-01-25 22:01:11 +0300
committerCorinna Vinschen <corinna@vinschen.de>2019-01-26 14:42:37 +0300
commitc524a915a55f4f7a88e706f0311195ac19d382cf (patch)
treea57cdd732179f0c552c32d6203cebf1cd177c2da
parent02373d8bec71abcd46421f0ce952ad4e8cfc1422 (diff)
Cygwin: lsaauth: Drop outdated test for loading Secur32.dll
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/cygwin/sec_auth.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/winsup/cygwin/sec_auth.cc b/winsup/cygwin/sec_auth.cc
index af927636e..1d07e374f 100644
--- a/winsup/cygwin/sec_auth.cc
+++ b/winsup/cygwin/sec_auth.cc
@@ -1061,7 +1061,6 @@ lsaauth (cygsid &usersid, user_groups &new_groups)
/* Register as logon process. */
RtlInitAnsiString (&name, "Cygwin");
- SetLastError (0);
status = LsaRegisterLogonProcess (&name, &lsa_hdl, &sec_mode);
if (status != STATUS_SUCCESS)
{
@@ -1069,11 +1068,6 @@ lsaauth (cygsid &usersid, user_groups &new_groups)
__seterrno_from_nt_status (status);
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. */
RtlInitAnsiString (&name, CYG_LSA_PKGNAME);
status = LsaLookupAuthenticationPackage (lsa_hdl, &name, &package_id);