Skip to content

Commit

Permalink
Merge pull request fancycode#81 from Scavanger/case-sensitive-functio…
Browse files Browse the repository at this point in the history
…n-names

Search for function names should be case sensitive (fixes fancycode#80).
  • Loading branch information
fancycode authored Mar 8, 2018
2 parents 403a31e + 060f0bd commit e039372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MemoryModule.c
Original file line number Diff line number Diff line change
Expand Up @@ -766,14 +766,14 @@ static int _compare(const void *a, const void *b)
{
const struct ExportNameEntry *p1 = (const struct ExportNameEntry*) a;
const struct ExportNameEntry *p2 = (const struct ExportNameEntry*) b;
return _stricmp(p1->name, p2->name);
return strcmp(p1->name, p2->name);
}

static int _find(const void *a, const void *b)
{
LPCSTR *name = (LPCSTR *) a;
const struct ExportNameEntry *p = (const struct ExportNameEntry*) b;
return _stricmp(*name, p->name);
return strcmp(*name, p->name);
}

FARPROC MemoryGetProcAddress(HMEMORYMODULE mod, LPCSTR name)
Expand Down

0 comments on commit e039372

Please sign in to comment.