Fix rare file loading bug which on case-sensitive filesystems (Linux)
This commit is contained in:
parent
7d572a67ef
commit
21b3eba530
@ -4321,7 +4321,7 @@ bool CBaseFileSystem::FixUpPath( const char *pFileName, char *pFixedUpFileName,
|
|||||||
{
|
{
|
||||||
// If the first part of the pFixedUpFilename is pBaseDir
|
// If the first part of the pFixedUpFilename is pBaseDir
|
||||||
// then lowercase the part after that.
|
// then lowercase the part after that.
|
||||||
if ( *pBaseDir && (iBaseLength+1 < V_strlen( pFixedUpFileName ) ) && (0 != V_strncmp( pBaseDir, pFixedUpFileName, iBaseLength ) ) )
|
if ( *pBaseDir && (iBaseLength+1 < V_strlen( pFixedUpFileName ) ) && (0 == V_strncmp( pBaseDir, pFixedUpFileName, iBaseLength ) ) )
|
||||||
{
|
{
|
||||||
V_strlower( &pFixedUpFileName[iBaseLength-1] );
|
V_strlower( &pFixedUpFileName[iBaseLength-1] );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user