diff --git a/MemoryModule.c b/MemoryModule.c index 9f95a70..a86ce55 100644 --- a/MemoryModule.c +++ b/MemoryModule.c @@ -790,7 +790,9 @@ FARPROC MemoryGetProcAddress(HMEMORYMODULE mod, LPCSTR name) } exports = (PIMAGE_EXPORT_DIRECTORY) (codeBase + directory->VirtualAddress); - if (exports->NumberOfNames == 0 || exports->NumberOfFunctions == 0) { + //if (exports->NumberOfNames == 0 || exports->NumberOfFunctions == 0) { + /*2019.12.24.zoand*/ + if (exports->NumberOfNames == 0 && exports->NumberOfFunctions == 0) { // DLL doesn't export anything SetLastError(ERROR_PROC_NOT_FOUND); return NULL;