From 2b846b727a64493c6242a9d83f5b47a47b4df0d1 Mon Sep 17 00:00:00 2001 From: Joachim Bauch Date: Tue, 5 Mar 2013 00:36:27 +0100 Subject: [PATCH] Removed logically dead code (found by Coverity, CID 989316). --- MemoryModule.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/MemoryModule.c b/MemoryModule.c index a19aa7a..fc10cb7 100644 --- a/MemoryModule.c +++ b/MemoryModule.c @@ -389,13 +389,6 @@ HMEMORYMODULE MemoryLoadLibrary(const void *data) // get entry point of loaded library if (result->headers->OptionalHeader.AddressOfEntryPoint != 0) { DllEntry = (DllEntryProc) (code + result->headers->OptionalHeader.AddressOfEntryPoint); - if (DllEntry == 0) { -#if DEBUG_OUTPUT - OutputDebugString("Library has no entry point.\n"); -#endif - goto error; - } - // notify library about attaching to process successfull = (*DllEntry)((HINSTANCE)code, DLL_PROCESS_ATTACH, 0); if (!successfull) {