diff --git a/Source/ee/PS2OS.cpp b/Source/ee/PS2OS.cpp index f752c26777..339364c8bf 100644 --- a/Source/ee/PS2OS.cpp +++ b/Source/ee/PS2OS.cpp @@ -425,7 +425,7 @@ void CPS2OS::LoadELF(Framework::CStream* stream, const char* executablePath, con auto executableName = executablePath; for(const auto separator : separators) { - if(auto sepPos = strrchr(executablePath, separator)) + if(const char* sepPos = strrchr(executablePath, separator)) { executableName = std::max(executableName, sepPos + 1); }