* ldap.cc (rediscover_thread): Give argument a useful name.
* miscfuncs.cc (NT_readline::init): It's a really bad idea trying to print a pointer to a PUNICODE_STRING as PUNICODE_STRING. Fix it. * uinfo.cc (cygheap_domain_info::init): Print status codes as hex values in debug output.
This commit is contained in:
parent
7fa5cbbfcd
commit
f8efc42f66
|
@ -1,3 +1,11 @@
|
|||
2014-02-11 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* ldap.cc (rediscover_thread): Give argument a useful name.
|
||||
* miscfuncs.cc (NT_readline::init): It's a really bad idea trying to
|
||||
print a pointer to a PUNICODE_STRING as PUNICODE_STRING. Fix it.
|
||||
* uinfo.cc (cygheap_domain_info::init): Print status codes as hex
|
||||
values in debug output.
|
||||
|
||||
2014-02-11 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* autoload.cc (NetLocalGroupGetInfo): Replace NetGroupGetInfo.
|
||||
|
|
|
@ -73,15 +73,15 @@ PWCHAR rfc2307_gid_attr[] =
|
|||
};
|
||||
|
||||
DWORD WINAPI
|
||||
rediscover_thread (LPVOID dummy)
|
||||
rediscover_thread (LPVOID domain)
|
||||
{
|
||||
PDOMAIN_CONTROLLER_INFOW pdci;
|
||||
DWORD ret = DsGetDcNameW (NULL, (PWCHAR) dummy, NULL, NULL,
|
||||
DWORD ret = DsGetDcNameW (NULL, (PWCHAR) domain, NULL, NULL,
|
||||
DS_FORCE_REDISCOVERY | DS_ONLY_LDAP_NEEDED, &pdci);
|
||||
if (ret == ERROR_SUCCESS)
|
||||
NetApiBufferFree (pdci);
|
||||
else
|
||||
debug_printf ("DsGetDcNameW(%W) failed with error %u", dummy, ret);
|
||||
debug_printf ("DsGetDcNameW(%W) failed with error %u", domain, ret);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -397,7 +397,7 @@ NT_readline::init (POBJECT_ATTRIBUTES attr, PCHAR in_buf, ULONG in_buflen)
|
|||
if (!NT_SUCCESS (status))
|
||||
{
|
||||
paranoid_printf ("NtOpenFile(%S) failed, status %y",
|
||||
&attr->ObjectName, status);
|
||||
attr->ObjectName, status);
|
||||
return false;
|
||||
}
|
||||
buf = in_buf;
|
||||
|
|
|
@ -726,7 +726,7 @@ cygheap_domain_info::init ()
|
|||
(PVOID *) &pdom);
|
||||
if (status != STATUS_SUCCESS)
|
||||
{
|
||||
system_printf ("LsaQueryInformationPolicy(Primary) %u", status);
|
||||
system_printf ("LsaQueryInformationPolicy(Primary) %y", status);
|
||||
return false;
|
||||
}
|
||||
/* Copy primary domain info to cygheap. */
|
||||
|
@ -740,7 +740,7 @@ cygheap_domain_info::init ()
|
|||
(PVOID *) &adom);
|
||||
if (status != STATUS_SUCCESS)
|
||||
{
|
||||
system_printf ("LsaQueryInformationPolicy(Account) %u", status);
|
||||
system_printf ("LsaQueryInformationPolicy(Account) %y", status);
|
||||
return false;
|
||||
}
|
||||
/* Copy account domain info to cygheap. If we're running on a DC the account
|
||||
|
|
Loading…
Reference in New Issue