mirror of
https://github.com/vxcontrol/MemoryModule.git
synced 2026-07-25 08:35:44 -04:00
Fix loading of DLLs that export all functions by ordinal
See-also: https://github.com/fancycode/MemoryModule/pull/96 Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
+1
-1
@@ -835,7 +835,7 @@ FARPROC MemoryGetProcAddress(HMEMORYMODULE mod, LPCSTR name)
|
||||
}
|
||||
|
||||
exports = (PIMAGE_EXPORT_DIRECTORY) (codeBase + directory->VirtualAddress);
|
||||
if (exports->NumberOfNames == 0 || exports->NumberOfFunctions == 0) {
|
||||
if (exports->NumberOfFunctions == 0) {
|
||||
// DLL doesn't export anything
|
||||
SetLastError(ERROR_PROC_NOT_FOUND);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user