Rebased again with some changes in the wow64 buffer mapping strategy to keep a lucky path if somehow the buffer gets mapped to the lower address space and doesn't need any copy. It doesn't happen often sadly.
I also included the wined3d hacks which make it possible to run Diablo II in wow64 (though this still requires the other WINEWOW hack to enable wow64 altogether).