Index: src/ch/TLocalFilesystem.cpp
===================================================================
diff -u -r886c32a98f09ae8dc24ceb6b27e5c8a75104954e -rc282037f34325e59663c08db952110df6cfb06fb
--- src/ch/TLocalFilesystem.cpp	(.../TLocalFilesystem.cpp)	(revision 886c32a98f09ae8dc24ceb6b27e5c8a75104954e)
+++ src/ch/TLocalFilesystem.cpp	(.../TLocalFilesystem.cpp)	(revision c282037f34325e59663c08db952110df6cfb06fb)
@@ -206,7 +206,7 @@
 
 chcore::TSmartPath TLocalFilesystem::PrependPathExtensionIfNeeded(const chcore::TSmartPath& pathInput)
 {
-	if(pathInput.GetLength() > _MAX_PATH - 1)
+	if(pathInput.GetLength() >= 248)
 		return chcore::PathFromString(_T("\\\\?\\")) + pathInput;
 	else
 		return pathInput;