https://bugs.winehq.org/show_bug.cgi?id=33034
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de
--- Comment #8 from Sebastian Lackner sebastian@fds-team.de --- Created attachment 49191 --> https://bugs.winehq.org/attachment.cgi?id=49191 ntdll: Set ldr.EntryPoint for main executable.
Does the attached patch solve the problem?
@Anastasius: I'm not really sure what you mean with "nasty things" though.
A case senstive search for "EntryPoint" in the whole wine source looks like this field is only used by: * K32GetModuleInformation * alloc_module * MODULE_InitDLL
The first one is never called directly, the associated export "GetModuleInformation" is only used from dbghelp, but EntryPoint isn't used there. For the third command it is necessary to exclude all modules without the LDR_IMAGE_IS_DLL flag set.
Am I missing any other places where we have to take into account that the main executable now has EntryPoint set?