On Mon Oct 16 16:56:36 2023 +0000, Alexandre Julliard wrote:
This will prevent relocating the main exe. What are you trying to do?
My understanding is that the relocations should be done if (module != NtCurrentTeb()->Peb->ImageBaseAddress). But it currently returns early in that case. I had some issues with your change in Hangover, got a c0000018 and the application to be emulated didn't load. So after checking why, I found your commit and thought the logic should be inverted. You indicate that's wrong, so it seems I miss something.