ptitSeb / box86

Box86 - Linux Userspace x86 Emulator with a twist, targeted at ARM Linux devices
https://box86.org
MIT License
3.18k stars 220 forks source link

Some Windows EXE files are failing to load on newer box86 builds #885

Open Pipetto-crypto opened 8 months ago

Pipetto-crypto commented 8 months ago

I have noticed that some windows exe files are failing to load in recent box86 builds but they were working fine with a box86 built from commit 75759f9b.

The error is quite generic: wine: failed to start L"E:\Download\PC\CAPCOM\DEVILMAYCRY4_TRIAL\DevilMayCry4_Trial_DX9.exe"

I went to investigate and it seems that it stops right here:

26773|Call to dlsym(0x4, "__wine_main")0x600268b0 26773|Call to dlsym((nil), "wine_main_preload_info")0x60300c

I went to look in the old build and those addresses returned are different:

31444|Call to dlsym(0x4, "__wine_main")0xed37a8b0 31444|Call to dlsym((nil), "wine_main_preload_info")0xedbcd00c

This issue seems also present in a box64 build from commit 7372540f.

The issue is also reproducible in this program: https://codecguide.com/download_k-lite_codec_pack_basic.htm

And from box64 side when trying to install wmp11 from winetricks: winetricks wmp11

But those programs fail with an error code 700 printed on screen

ptitSeb commented 8 months ago

I reproduce the issue with DMC4Trial. I'll look into it.

ptitSeb commented 8 months ago

Ok, this should be fixeds with latest box86 version. I'll make similar changes to box64.