1
0

Fixed cIniFile's SetValue().

How did we not see this earlier? Each call to SetValue would actually ADD a value!
This commit is contained in:
madmaxoft 2014-01-10 16:23:22 +01:00
parent 8104f611f1
commit 4c360b54e3

View File

@ -384,15 +384,7 @@ bool cIniFile::SetValue(const AString & keyname, const AString & valuename, cons
}
else
{
if (!create)
{
keys[keyID].values[valueID] = value;
}
else
{
keys[keyID].names.resize(keys[keyID].names.size() + 1, valuename);
keys[keyID].values.resize(keys[keyID].values.size() + 1, value);
}
keys[keyID].values[valueID] = value;
}
return true;