mirror of
https://github.com/fancycode/MemoryModule
synced 2026-06-06 15:44:28 +00:00
Merge pull request #81 from Scavanger/case-sensitive-function-names
Search for function names should be case sensitive (fixes #80).
This commit is contained in:
+2
-2
@@ -766,14 +766,14 @@ static int _compare(const void *a, const void *b)
|
|||||||
{
|
{
|
||||||
const struct ExportNameEntry *p1 = (const struct ExportNameEntry*) a;
|
const struct ExportNameEntry *p1 = (const struct ExportNameEntry*) a;
|
||||||
const struct ExportNameEntry *p2 = (const struct ExportNameEntry*) b;
|
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)
|
static int _find(const void *a, const void *b)
|
||||||
{
|
{
|
||||||
LPCSTR *name = (LPCSTR *) a;
|
LPCSTR *name = (LPCSTR *) a;
|
||||||
const struct ExportNameEntry *p = (const struct ExportNameEntry*) b;
|
const struct ExportNameEntry *p = (const struct ExportNameEntry*) b;
|
||||||
return _stricmp(*name, p->name);
|
return strcmp(*name, p->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
FARPROC MemoryGetProcAddress(HMEMORYMODULE mod, LPCSTR name)
|
FARPROC MemoryGetProcAddress(HMEMORYMODULE mod, LPCSTR name)
|
||||||
|
|||||||
Reference in New Issue
Block a user