Skip to content

Commit

Permalink
Use a proper value for invalid_handle (#135)
Browse files Browse the repository at this point in the history
I forgot that `INVALID_HANDLE_VALUE` exists on Windows
  • Loading branch information
bugdea1er authored Oct 23, 2024
1 parent 643cec7 commit 4ae672a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static_assert(std::is_same_v<HANDLE, void*>);

/// Implementation-defined invalid handle to the entry
#ifdef _WIN32
const entry::native_handle_type invalid_handle = nullptr;
const entry::native_handle_type invalid_handle = INVALID_HANDLE_VALUE;
#else
const entry::native_handle_type invalid_handle = -1;
#endif
Expand Down

0 comments on commit 4ae672a

Please sign in to comment.