From 84b67a19245205e6b56877144cfa4ab88ed03beb Mon Sep 17 00:00:00 2001 From: bugdea1er Date: Wed, 23 Oct 2024 21:23:27 +0300 Subject: [PATCH] Use a proper value for `invalid_handle` --- src/entry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entry.cpp b/src/entry.cpp index d42e2e9..c72afe8 100644 --- a/src/entry.cpp +++ b/src/entry.cpp @@ -28,7 +28,7 @@ static_assert(std::is_same_v); /// 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