diff --git a/Source/IO/FS/FS.cpp b/Source/IO/FS/FS.cpp index f352101f..e26b9430 100644 --- a/Source/IO/FS/FS.cpp +++ b/Source/IO/FS/FS.cpp @@ -180,6 +180,16 @@ namespace Aurora::IO::FS result = path; } } + + #if defined(AURORA_IS_MODERNNT_DERIVED) + if (result.size() >= MAX_PATH) + { + if (!AuStartsWith(result, "\\\\")) + { + result = "\\\\?\\" + result; + } + } + #endif } void /* internal, local export */ _NormalizePath(AuString &str)