MemoryModule icon indicating copy to clipboard operation
MemoryModule copied to clipboard

fix MemoryGetProcAddress by ordinal value

Open zoand opened this issue 6 years ago • 1 comments

load function by ordinal value

zoand avatar Dec 24 '19 07:12 zoand

You are right. This is a bug. But your bugfix can be simpler: It is is enough to check for exports->NumberOfFunctions == 0 because NumberOfNames is zero when only ordinals are exported while NumberOfFunctions is greater than zero whenever ANY function is exported.

Once again the code from Joachim is extremely awkward and clumsy. Neither malloc() nor qsort() nor bsearch() nor _find() nor _compare() are required in this function to find an exported function.

Elmue avatar Jul 08 '20 19:07 Elmue