OcStringLib: Fix logic
@@ -230,7 +230,7 @@ UnicodeGetParentDirectory (
//
// Drop trailing slash when getting a directory.
//
- if (String[Length - 1] == '\\' && String[Length - 1] == '/') {
+ if (String[Length - 1] == '\\' || String[Length - 1] == '/') {
--Length;
//
// Paths with just one slash have no root directory (e.g. \\/).
