Fix extension name comparison for DLL files
This commit is contained in:
parent
22552c7bab
commit
c4f739b8d0
3 changed files with 26 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue