Dmitry Timoshkov : adsldp: Use correct format specifiers for SYSTEMTIME fields.

Alexandre Julliard julliard at winehq.org
Thu Apr 9 16:04:46 CDT 2020


Module: wine
Branch: master
Commit: 3eaecb2854a111bc8eeb71d247378251031467dc
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3eaecb2854a111bc8eeb71d247378251031467dc

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Thu Apr  9 16:01:17 2020 +0800

adsldp: Use correct format specifiers for SYSTEMTIME fields.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/adsldp/adsldp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/adsldp/adsldp.c b/dlls/adsldp/adsldp.c
index c52f71b751..6d411430a0 100644
--- a/dlls/adsldp/adsldp.c
+++ b/dlls/adsldp/adsldp.c
@@ -1586,7 +1586,7 @@ static HRESULT add_column_values(LDAP_namespace *ldap, struct ldap_search_contex
         {
             col->pADsValues[i].dwType = type;
             if (values[i]->bv_len < 14 ||
-                _snscanf_l(values[i]->bv_val, values[i]->bv_len, "%04u%02u%02u%02u%02u%02u", NULL,
+                _snscanf_l(values[i]->bv_val, values[i]->bv_len, "%04hu%02hu%02hu%02hu%02hu%02hu", NULL,
                            &col->pADsValues[i].u.UTCTime.wYear, &col->pADsValues[i].u.UTCTime.wMonth,
                            &col->pADsValues[i].u.UTCTime.wDay, &col->pADsValues[i].u.UTCTime.wHour,
                            &col->pADsValues[i].u.UTCTime.wMinute, &col->pADsValues[i].u.UTCTime.wSecond) != 6)




More information about the wine-cvs mailing list