log: corrected type for string position

This commit is contained in:
raffarti 2018-01-23 12:57:25 +01:00
parent fedd97b8c0
commit e893e1cf88

View file

@ -15,7 +15,7 @@ namespace dxvk {
if (!file.empty() && *file.rbegin() != '/')
file += '/';
std::string name = env::getExeName();
unsigned int extp = name.find_last_of('.');
auto extp = name.find_last_of('.');
if (extp != std::string::npos && name.substr(extp +1) == "exe")
name.erase(extp);
file += name + "_";