Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Fix remaining compilation errors on Windows after refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneAlex committed Aug 4, 2023
1 parent 04d741e commit 22b1514
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/kstd/platform/file_mapping.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace kstd::platform::mm {
file::File _file;

#ifdef PLATFORM_WINDOWS
FileHandle _handle {};
file::FileHandle _handle {};
#endif

[[nodiscard]] auto soft_map() noexcept -> Result<void>;
Expand Down
3 changes: 2 additions & 1 deletion src/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ namespace kstd::platform {

auto Process::open_handle() const noexcept -> Result<ProcessHandle> {
#ifdef PLATFORM_WINDOWS
using namespace std::string_literals;
HANDLE handle = ::OpenProcess(PROCESS_ALL_ACCESS, FALSE, _id);
if(handle == nullptr) {
return Error {"Could not open process handle"};
return Error {"Could not open process handle"s};
}
return ProcessHandle {handle};
#else
Expand Down

0 comments on commit 22b1514

Please sign in to comment.