From 9c8420fe8c97e0795af566d0e5ce2bcaac15e823 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Wed, 15 Jul 2020 09:49:48 +0200 Subject: [PATCH] Fix compile warning --- sql/winservice.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/winservice.c b/sql/winservice.c index c7883c9f384..371a447c51d 100644 --- a/sql/winservice.c +++ b/sql/winservice.c @@ -125,7 +125,8 @@ static void get_datadir_from_ini(const char *ini, char *service_name, char *data { if (sections[i]) { - GetPrivateProfileStringA(sections[i], "datadir", NULL, datadir, sz, ini); + GetPrivateProfileStringA(sections[i], "datadir", NULL, datadir, + (DWORD) sz, ini); if (*datadir) return; }