修复Wine

This commit is contained in:
2026-04-13 19:12:22 +08:00
parent 4beaed4ba3
commit f9e0190abe
6 changed files with 3 additions and 3 deletions

View File

@@ -69,4 +69,4 @@ def page_floor(addr: int) -> int:
def page_ceil(addr: int) -> int: def page_ceil(addr: int) -> int:
return (addr + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1)`n return (addr + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1)

View File

@@ -874,4 +874,4 @@ def resolve_elf_target(elf_arg: str, rootfs: Path) -> Tuple[Path, str]:
host_path = _guest_to_host_for_resolve(rootfs, guest_path) host_path = _guest_to_host_for_resolve(rootfs, guest_path)
if host_path is None: if host_path is None:
raise FileNotFoundError(f"ELF not found as host path or guest path: {elf_arg}") raise FileNotFoundError(f"ELF not found as host path or guest path: {elf_arg}")
return host_path.resolve(), guest_path`n return host_path.resolve(), guest_path

View File

@@ -128,4 +128,4 @@ class SharedKernelState:
if status is None: if status is None:
return 0, 0 return 0, 0
return 1, int(status)`n return 1, int(status)