From 70eb6ba149a248d22af401778f3399b9c10e83d0 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Mon, 21 Oct 2024 20:15:42 +0200 Subject: [PATCH] Remove api dll workaround --- src/windows-emulator/syscalls.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/windows-emulator/syscalls.cpp b/src/windows-emulator/syscalls.cpp index 008c902..4b48b8b 100644 --- a/src/windows-emulator/syscalls.cpp +++ b/src/windows-emulator/syscalls.cpp @@ -479,15 +479,7 @@ namespace return STATUS_NOT_SUPPORTED; } - if (filename.starts_with(L"api-ms-")) - { - filename = L"C:\\WINDOWS\\System32\\downlevel\\" + filename; - } - else - { - filename = L"C:\\WINDOWS\\System32\\" + filename; - } - + filename = L"C:\\WINDOWS\\System32\\" + filename; if (!std::filesystem::exists(filename)) { return STATUS_FILE_INVALID;