Fix extension name comparison for DLL files
This commit is contained in:
1 parent
22552c7bab
commit
c4f739b8d0
3 files changed
+26
-1
No files matched your search
@@ -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 );
|
||||
|
||||
Reference in new issue
Block a user