diff --git a/src/windows_emulator/syscalls.cpp b/src/windows_emulator/syscalls.cpp index df61dcb..b1e82a0 100644 --- a/src/windows_emulator/syscalls.cpp +++ b/src/windows_emulator/syscalls.cpp @@ -439,7 +439,7 @@ namespace return status; } - if (std::filesystem::exists(filename)) + if (!std::filesystem::exists(filename)) { return STATUS_FILE_INVALID; }