From 6177d84361bd2c7f84d643218c8ccd7dc600b450 Mon Sep 17 00:00:00 2001 From: DavidXanatos Date: Sun, 6 Nov 2022 15:55:59 +0100 Subject: [PATCH] Update key_merge.c --- Sandboxie/core/dll/key_merge.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sandboxie/core/dll/key_merge.c b/Sandboxie/core/dll/key_merge.c index e2bf25cc..c355cf14 100644 --- a/Sandboxie/core/dll/key_merge.c +++ b/Sandboxie/core/dll/key_merge.c @@ -780,6 +780,8 @@ _FX NTSTATUS Key_MergeCacheDummys(KEY_MERGE *merge, const WCHAR *TruePath) if (NT_SUCCESS(status)) { + File_NtCloseImpl(KeyHandle); + name_len *= sizeof(WCHAR); len = sizeof(KEY_MERGE_SUBKEY) + name_len + sizeof(WCHAR);