Updates will be applied on October 27th between 12pm - 12:45pm EDT (UTC-0400). Gitlab may be slow during the maintenance window.

Commit 11e0e6e3 authored by Bill Hoffman's avatar Bill Hoffman
Browse files

BUG: if short path or long path fails return the original input

parent fa15df7b
......@@ -2244,13 +2244,13 @@ kwsys_stl::string SystemTools::GetActualCaseForPath(const char* p)
std::string path;
if(!SystemTools::GetShortPath(p, path))
{
return path;
return p;
}
char buffer[MAX_PATH+1];
int len = ::GetLongPathName(path.c_str(), buffer, MAX_PATH+1);
if(len == 0 || len > MAX_PATH+1)
{
return path;
return p;
}
return buffer;
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment