From f2ab2a48dfa5511a5224147222900e7662061fe6 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 11 Jan 2025 08:58:08 +0100 Subject: [PATCH 1/2] Fix ltsc2019 execution --- src/windows-emulator/syscalls.cpp | 7 +++++++ src/windows-emulator/windows_emulator.cpp | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/windows-emulator/syscalls.cpp b/src/windows-emulator/syscalls.cpp index 857945a9..46a23fbd 100644 --- a/src/windows-emulator/syscalls.cpp +++ b/src/windows-emulator/syscalls.cpp @@ -3391,6 +3391,12 @@ namespace return STATUS_SUCCESS; } + + NTSTATUS handle_NtYieldExecution(const syscall_context& c) + { + c.win_emu.yield_thread(); + return STATUS_SUCCESS; + } } void syscall_dispatcher::add_handlers(std::map& handler_mapping) @@ -3503,6 +3509,7 @@ void syscall_dispatcher::add_handlers(std::map& ha add_handler(NtQueryDirectoryFileEx); add_handler(NtUserSystemParametersInfo); add_handler(NtGetContextThread); + add_handler(NtYieldExecution); #undef add_handler } diff --git a/src/windows-emulator/windows_emulator.cpp b/src/windows-emulator/windows_emulator.cpp index e1f565ab..86954128 100644 --- a/src/windows-emulator/windows_emulator.cpp +++ b/src/windows-emulator/windows_emulator.cpp @@ -265,8 +265,8 @@ namespace peb.OSMajorVersion = 0x0000000a; peb.OSBuildNumber = 0x00006c51; - peb.AnsiCodePageData = allocator.reserve().value(); - peb.OemCodePageData = allocator.reserve().value(); + // peb.AnsiCodePageData = allocator.reserve().value(); + // peb.OemCodePageData = allocator.reserve().value(); peb.UnicodeCaseTableData = allocator.reserve().value(); }); } From b3b7a75373ccbcf779dcb8868f610cfd36e621d4 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 11 Jan 2025 08:58:37 +0100 Subject: [PATCH 2/2] Add windows 10 CI tests --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4fdce935..d080f82d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -129,7 +129,7 @@ jobs: # TODO: Move different windows platforms into registry dump matrix - Windows 2025 - Windows 2022 - #- Windows 2019 + - Windows 2019 - Linux GCC - Linux Clang - macOS @@ -147,9 +147,9 @@ jobs: - platform: Windows 2022 build-platform: Windows runner: windows-2022 - #- platform: Windows 2019 - # build-platform: Windows - # runner: windows-2019 + - platform: Windows 2019 + build-platform: Windows + runner: windows-2019 - platform: Linux GCC build-platform: Linux GCC runner: ubuntu-24.04