Open local vds file with 260+ symbols in path
Problem in opening vds file with 260+ symbols path.
For example:
D:\Documents\Documents\1234567890 168e79156-f70c-41a9-9b84-89f5fb9402e9 8e79156-f70c-41a9-9b84-89f5fb9402e9 8e79156-f70c-41a9-9b84-89f5fb9402e9 8e79156-f70c-41a9-9b84-89f5fb9402e9 8e79156-\Test_Lateral.StarSteer.data\sc\f1c720af-8e57-4137-874b-11f96e47bda7.vds
can't be opened. Error:
{code=3 string="File::Open: The system cannot find the path specified.\r\n" }
YES, 260 Character Path Limit already fixed on my PC
bool File::Open(const std::string& filename, bool isCreate, bool isDestroyExisting, bool isWriteAccess, Error& error)
std::wstring native_name;
s2ws(_cFileName, native_name);
_pxPlatformHandleRead = CreateFileW(
native_name.c_str(),
GENERIC_READ | (isWriteAccess ? GENERIC_WRITE : 0),
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,
dwCreationDisposition,
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_RANDOM_ACCESS | FILE_FLAG_OVERLAPPED,
NULL);
}
generates INVALID_HANDLE_VALUE
.