Skip to content

Commit

Permalink
Remove api dll workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
momo5502 committed Oct 21, 2024
1 parent 9242218 commit 70eb6ba
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/windows-emulator/syscalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 70eb6ba

Please sign in to comment.