Fix compile warning

This commit is contained in:
Vladislav Vaintroub 2020-07-15 09:49:48 +02:00
parent 07e89bf7d1
commit 9c8420fe8c

View file

@ -125,7 +125,8 @@ static void get_datadir_from_ini(const char *ini, char *service_name, char *data
{ {
if (sections[i]) if (sections[i])
{ {
GetPrivateProfileStringA(sections[i], "datadir", NULL, datadir, sz, ini); GetPrivateProfileStringA(sections[i], "datadir", NULL, datadir,
(DWORD) sz, ini);
if (*datadir) if (*datadir)
return; return;
} }