summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--orkbasecxx/Utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/orkbasecxx/Utils.h b/orkbasecxx/Utils.h
index 8d41a10..b50872a 100644
--- a/orkbasecxx/Utils.h
+++ b/orkbasecxx/Utils.h
@@ -69,6 +69,10 @@ inline CStdString BaseName(CStdString& path)
{
result = path.Right(path.GetLength() - lastSeparatorPosition - 1);
}
+ else
+ {
+ result = path;
+ }
return result;
}