Browse Source

Fixed an API bug

master
Sasko Usinov 3 months ago
parent
commit
c3c33148e9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/libsources/ini.cpp

+ 2
- 2
lib/libsources/ini.cpp View File

@@ -91,7 +91,7 @@ std::string api::ini::get_ini_value(const std::string & file, const std::string
for (; i < ini_content.size(); ++i)
{
if (api::str::left_string_compare(ini_content[i], ini_key))
out = api::str::trim(api::str::range_copy(api::str::get_char_index('=', 1, ini_content[i]) + 1, ini_content[i].size() - 1, ini_content[i]));
return api::str::trim(api::str::range_copy(api::str::get_char_index('=', 1, ini_content[i]) + 1, ini_content[i].size() - 1, ini_content[i]));
}
}
}
@@ -130,7 +130,7 @@ std::string api::ini::get_ini_value(const std::vector<std::string> & ini_content
for (; i < ini_content.size(); ++i)
{
if (api::str::left_string_compare(ini_content[i], ini_key))
out = api::str::trim(api::str::range_copy(api::str::get_char_index('=', 1, ini_content[i]) + 1, ini_content[i].size() - 1, ini_content[i]));
return api::str::trim(api::str::range_copy(api::str::get_char_index('=', 1, ini_content[i]) + 1, ini_content[i].size() - 1, ini_content[i]));
}
}
}


Loading…
Cancel
Save