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; }