mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-30 12:32:43 +00:00
VFS: fix off-by-one error in vfs::escape()
This commit is contained in:
parent
9134388f94
commit
60f8fc293d
@ -320,7 +320,7 @@ std::string vfs::escape(std::string_view name, bool escape_slash)
|
|||||||
case "COM"_u32:
|
case "COM"_u32:
|
||||||
case "LPT"_u32:
|
case "LPT"_u32:
|
||||||
{
|
{
|
||||||
if (name.size() >= 4 && name[3] >= '1' && name[4] <= '9')
|
if (name.size() >= 4 && name[3] >= '1' && name[3] <= '9')
|
||||||
{
|
{
|
||||||
if (name.size() == 4 || name[4] == '.')
|
if (name.size() == 4 || name[4] == '.')
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user