Skip to content

Commit

Permalink
Use a proper value for invalid_handle
Browse files Browse the repository at this point in the history
  • Loading branch information
bugdea1er committed Oct 23, 2024
1 parent 643cec7 commit 84b67a1
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 84b67a1

Please sign in to comment.