Fix extension name comparison for DLL files

This commit is contained in:
Thilo Schulz 2011-07-24 22:12:21 +00:00
parent 22552c7bab
commit c4f739b8d0
3 changed files with 26 additions and 1 deletions

View file

@ -557,7 +557,7 @@ static void FS_CheckFilenameIsNotExecutable( const char *filename,
const char *function )
{
// Check if the filename ends with the library extension
if( !Q_stricmp( COM_GetExtension( filename ), DLL_EXT ) )
if(COM_CompareExtension(filename, DLL_EXT))
{
Com_Error( ERR_FATAL, "%s: Not allowed to manipulate '%s' due "
"to %s extension", function, filename, DLL_EXT );