mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-17 03:15:39 +00:00
Merge pull request #563 from lioncash/fs
file_system: Correct duplicate conditionals in CreateDirectory()
This commit is contained in:
commit
da0885af0d
|
@ -953,7 +953,7 @@ bool FileSystem::CreateDirectory(const char* Path, bool Recursive)
|
||||||
}
|
}
|
||||||
|
|
||||||
// re-create the end if it's not a separator, check / as well because windows can interpret them
|
// re-create the end if it's not a separator, check / as well because windows can interpret them
|
||||||
if (Path[pathLength - 1] != '\\' && Path[pathLength - 1] != '\\')
|
if (Path[pathLength - 1] != '\\' && Path[pathLength - 1] != '/')
|
||||||
{
|
{
|
||||||
if (!CreateDirectoryA(Path, nullptr))
|
if (!CreateDirectoryA(Path, nullptr))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue