diff --git a/libmediation/types/types.cpp b/libmediation/types/types.cpp index 54e9ebc..ca1adcd 100644 --- a/libmediation/types/types.cpp +++ b/libmediation/types/types.cpp @@ -300,7 +300,8 @@ string extractFileName(const string& src) for (int i = src.size() - 1; i >= 0; i--) if (src[i] == '.') { - if (endPos == src.size()) endPos = i; + if (endPos == src.size()) + endPos = i; } else if (src[i] == '/' || src[i] == '\\') {