On WINE, VirtualAlloc2 seems to be returning addresses outside of the requested range, which causes the resulting jump to overflow and jump to invalid memory. This patch detects the faulty alloc and allows falling back to another method if configured to do so.
On WINE, VirtualAlloc2 seems to be returning addresses outside of the requested range, which causes the resulting jump to overflow and jump to invalid memory. This patch detects the faulty alloc and allows falling back to another method if configured to do so.