* 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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user