* uinfo.cc (cygheap_domain_info::init): Drop accidentally leftover if

statement.
This commit is contained in:
Corinna Vinschen 2014-02-10 20:28:32 +00:00
parent b0244c497b
commit 85827fa685
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2014-02-10 Corinna Vinschen <corinna@vinschen.de>
* uinfo.cc (cygheap_domain_info::init): Drop accidentally leftover if
statement.
2014-02-10 Corinna Vinschen <corinna@vinschen.de>
* uinfo.cc (cygheap_domain_info::init): Fix handling of account domain

View File

@ -750,8 +750,7 @@ cygheap_domain_info::init ()
trying to compute the uid/gid values. Therefore we invalidate the account
domain name if we're running on a DC. */
adom_sid = adom->DomainSid;
if (pdom_sid == adom_sid)
adom_name = cwcsdup (pdom_sid == adom_sid ? L"@" : adom->DomainName.Buffer);
adom_name = cwcsdup (pdom_sid == adom_sid ? L"@" : adom->DomainName.Buffer);
LsaFreeMemory (adom);
lsa_close_policy (lsa);
if (cygheap->dom.member_machine ())