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