This isn't right: it'll add a period to the end, even when there was no
extension at all. Remove it; it wasn't meant to be committed to begin with.
This commit is contained in:
@@ -733,14 +733,6 @@ void MakeValidFilename( CString &sName )
|
|||||||
}
|
}
|
||||||
|
|
||||||
sName = WStringToRString( wsName );
|
sName = WStringToRString( wsName );
|
||||||
if( Basename(sName).size() > 128 )
|
|
||||||
{
|
|
||||||
/* The filename is too long. Truncate it, but leave the extension alone. */
|
|
||||||
const RString& sExt = GetExtension( sName );
|
|
||||||
sName = SetExtension( sName, "" );
|
|
||||||
sName.erase( 128 );
|
|
||||||
sName = sName + "." + sExt;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int g_argc = 0;
|
int g_argc = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user