* setlsapwd.cc (setlsapwd): Fix conditional expression after breaking
it on 2014-01-23.
This commit is contained in:
parent
a8cf6887a2
commit
4413149388
|
@ -1,3 +1,8 @@
|
|||
2014-02-18 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* setlsapwd.cc (setlsapwd): Fix conditional expression after breaking
|
||||
it on 2014-01-23.
|
||||
|
||||
2014-02-17 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* autoload.cc (ldap_abandon): Import.
|
||||
|
|
|
@ -70,7 +70,7 @@ setlsapwd (const char *passwd, const char *username)
|
|||
if (data_buf)
|
||||
RtlInitUnicodeString (&data, data_buf);
|
||||
/* First try it locally. Works for admin accounts. */
|
||||
if (!(lsa = lsa_open_policy (NULL, POLICY_CREATE_SECRET)))
|
||||
if ((lsa = lsa_open_policy (NULL, POLICY_CREATE_SECRET)))
|
||||
{
|
||||
NTSTATUS status = LsaStorePrivateData (lsa, &key,
|
||||
data.Length ? &data : NULL);
|
||||
|
|
Loading…
Reference in New Issue