MemoryModule
MemoryModule copied to clipboard
fix MemoryGetProcAddress by ordinal value
load function by ordinal value
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.