mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcStringLib: Fix logic
This commit is contained in:
parent
d3b6d87393
commit
3ecec16f29
@ -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. \\/).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user