Skip to content

Should use case-insensitive comparison when comparing file names #4

@anr2me

Description

@anr2me

For example at:

if (!strcmp(ImportDLLName, DLLName))

As some program imports using "KERNEL32.dll" naming while some use "KERNEL32.DLL", and so on.

I'm replacing it with strcasecmp by declaring this:

#ifdef _MSC_VER 
//not #if defined(_WIN32) || defined(_WIN64) because we have strncasecmp in mingw
#define strncasecmp _strnicmp
#define strcasecmp _stricmp
#endif

PS: Not sure whether imported function names can be case-insensitive too or not

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions