From 7b799dc1f16029a142c588342e10805aa11d28d5 Mon Sep 17 00:00:00 2001 From: zoand Date: Tue, 24 Dec 2019 15:17:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8D=E8=83=BD=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=8C=BF=E5=90=8D=E5=AF=BC=E5=87=BA=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MemoryModule.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;