Skip to content

Commit 2b846b7

Browse files
committed
Removed logically dead code (found by Coverity, CID 989316).
1 parent 6a5d3d4 commit 2b846b7

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

MemoryModule.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -389,13 +389,6 @@ HMEMORYMODULE MemoryLoadLibrary(const void *data)
389389
// get entry point of loaded library
390390
if (result->headers->OptionalHeader.AddressOfEntryPoint != 0) {
391391
DllEntry = (DllEntryProc) (code + result->headers->OptionalHeader.AddressOfEntryPoint);
392-
if (DllEntry == 0) {
393-
#if DEBUG_OUTPUT
394-
OutputDebugString("Library has no entry point.\n");
395-
#endif
396-
goto error;
397-
}
398-
399392
// notify library about attaching to process
400393
successfull = (*DllEntry)((HINSTANCE)code, DLL_PROCESS_ATTACH, 0);
401394
if (!successfull) {

0 commit comments

Comments
 (0)