Oh, interesting: jacek/wine@7ad8beb02f02b7f27be44f3ef136c680d527ea74
His approach is less verbose than mine and he wrote a dedicated function to get the environment variable (`WINEWOW` in his case). I decided not to do that as it's meant to be temporary code, the smaller the footprint the better.
However, I'm also noticing the changes to `loader.c` are completely different compared to mine. I initially assumed it was to make WoW64 work when running Wine directly from the build tree, but the commit message explicitly states the method is not supported yet.
@jacek Could you explain, please?