Removed logically dead code (found by Coverity, CID 989316).

This commit is contained in:
Joachim Bauch
2013-03-05 00:36:27 +01:00
parent 6a5d3d420e
commit 2b846b727a
-7
View File
@@ -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) {