Commit fc1cc8ef authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

adsldp: Fix typos in ADSTYPE_BOOLEAN handling.

parent 3eaecb28
...@@ -1488,16 +1488,16 @@ static HRESULT add_column_values(LDAP_namespace *ldap, struct ldap_search_contex ...@@ -1488,16 +1488,16 @@ static HRESULT add_column_values(LDAP_namespace *ldap, struct ldap_search_contex
{ {
col->pADsValues[i].dwType = type; col->pADsValues[i].dwType = type;
if (wcsicmp(values[i], L"TRUE")) if (!wcsicmp(values[i], L"TRUE"))
col->pADsValues[i].u.Boolean = 1; col->pADsValues[i].u.Boolean = 1;
else if (wcsicmp(values[i], L"FALSE")) else if (!wcsicmp(values[i], L"FALSE"))
col->pADsValues[i].u.Boolean = 0; col->pADsValues[i].u.Boolean = 0;
else else
{ {
FIXME("not recognized boolean value %s\n", debugstr_w(values[i])); FIXME("not recognized boolean value %s\n", debugstr_w(values[i]));
col->pADsValues[i].u.Boolean = 0; col->pADsValues[i].u.Boolean = 0;
} }
TRACE("=> %d\n", col->pADsValues[i].u.Boolean); TRACE("%s => %d\n", debugstr_w(values[i]), col->pADsValues[i].u.Boolean);
} }
ldap_value_freeW(values); ldap_value_freeW(values);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment