Skip to content

Commit eaa6085

Browse files
committed
Fix loading of DLLs that export all functions by ordinal
See-also: fancycode#96 Signed-off-by: Simon Rozman <simon@rozman.si>
1 parent f809ca2 commit eaa6085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MemoryModule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ FARPROC MemoryGetProcAddress(HMEMORYMODULE mod, LPCSTR name)
835835
}
836836

837837
exports = (PIMAGE_EXPORT_DIRECTORY) (codeBase + directory->VirtualAddress);
838-
if (exports->NumberOfNames == 0 || exports->NumberOfFunctions == 0) {
838+
if (exports->NumberOfFunctions == 0) {
839839
// DLL doesn't export anything
840840
SetLastError(ERROR_PROC_NOT_FOUND);
841841
return NULL;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy