From f23fe935c16192ed0174b3076703c1f95f5f38d7 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Fri, 24 Jan 2025 13:22:26 +0100 Subject: [PATCH] Fix handle closing --- src/windows-emulator/handles.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows-emulator/handles.hpp b/src/windows-emulator/handles.hpp index 87b5045d..7f0eca2e 100644 --- a/src/windows-emulator/handles.hpp +++ b/src/windows-emulator/handles.hpp @@ -114,7 +114,7 @@ namespace handle_detail struct generic_handle_store { virtual ~generic_handle_store() = default; - virtual bool erase(const handle h) = 0; + virtual bool erase(handle h) = 0; }; template @@ -205,7 +205,7 @@ class handle_store : public generic_handle_store { if (!T::deleter(entry->second)) { - return false; + return true; } }