Dmitry Timoshkov : adsldp: Fix typos in ADSTYPE_BOOLEAN handling.
Alexandre Julliard
julliard at winehq.org
Thu Apr 9 16:04:46 CDT 2020
Module: wine
Branch: master
Commit: fc1cc8ef78af30e3243043bc370bf29e435161ef
URL: https://source.winehq.org/git/wine.git/?a=commit;h=fc1cc8ef78af30e3243043bc370bf29e435161ef
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Thu Apr 9 16:01:32 2020 +0800
adsldp: Fix typos in ADSTYPE_BOOLEAN handling.
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/adsldp/adsldp.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/adsldp/adsldp.c b/dlls/adsldp/adsldp.c
index 6d411430a0..de88ee994c 100644
--- a/dlls/adsldp/adsldp.c
+++ b/dlls/adsldp/adsldp.c
@@ -1488,16 +1488,16 @@ static HRESULT add_column_values(LDAP_namespace *ldap, struct ldap_search_contex
{
col->pADsValues[i].dwType = type;
- if (wcsicmp(values[i], L"TRUE"))
+ if (!wcsicmp(values[i], L"TRUE"))
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;
else
{
FIXME("not recognized boolean value %s\n", debugstr_w(values[i]));
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);
More information about the wine-cvs
mailing list