Costume Quest via Wine WOW64 on aarch64 shows "Disk cannot be read" dialogs on startup, followed by a crash.
With WINEDEBUG=+file set, the issue seems to be related to ReadFileEx use:
0428:trace:file:ReadFileEx (file=000000E4, buffer=05B5D1E0, bytes=2048, ovl=05B5D168, ovl_fn=00709C50)
Threw Claude at the issue, the following change seemed to fix the issue:
--- a/wine/wow64/wowbox64.c
+++ b/wine/wow64/wowbox64.c
@@ -433,6 +433,7 @@
} else {
R_EAX = Wow64SystemServiceEx(id, ULongToPtr(ctx->Esp + 4));
}
+ ctx->Eax = R_EAX;
fpu_to_box(ctx, emu);
But I'm not knowledgeable enough in the codebase to assess if that's a valid fix.
Env
- Box64 v0.4.1-3
- Wine 11.6
- aarch64-linux
Costume Quest via Wine WOW64 on aarch64 shows "Disk cannot be read" dialogs on startup, followed by a crash.
With
WINEDEBUG=+fileset, the issue seems to be related toReadFileExuse:Threw Claude at the issue, the following change seemed to fix the issue:
But I'm not knowledgeable enough in the codebase to assess if that's a valid fix.
Env