From 804915c5cc60e86a7c214a5e1f697b77ecc4342c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Jim=C3=A9nez=20Rivera?= Date: Thu, 6 Feb 2025 11:04:14 +0100 Subject: [PATCH 1/2] Close file handler when creating placeholder --- native-src/placeholders_interface/Planceholders.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/native-src/placeholders_interface/Planceholders.cpp b/native-src/placeholders_interface/Planceholders.cpp index 360df8ee..67e9fcf1 100644 --- a/native-src/placeholders_interface/Planceholders.cpp +++ b/native-src/placeholders_interface/Planceholders.cpp @@ -265,6 +265,8 @@ bool Placeholders::ConvertToPlaceholder(const std::wstring &fullPath, const std: // Liberar el buffer de mensaje de error LocalFree(errorMsg); + CloseHandle(fileHandle); + return false; } From 84379fabddc979504f2e83fe1b85290ba94da69e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Gonz=C3=A1lez?= Date: Wed, 12 Feb 2025 11:42:23 +0100 Subject: [PATCH 2/2] fix: revert shell forcing --- native-src/placeholders_interface/Planceholders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native-src/placeholders_interface/Planceholders.cpp b/native-src/placeholders_interface/Planceholders.cpp index 360df8ee..4aeed928 100644 --- a/native-src/placeholders_interface/Planceholders.cpp +++ b/native-src/placeholders_interface/Planceholders.cpp @@ -606,7 +606,7 @@ HRESULT Placeholders::UpdatePinState(const std::wstring &path, const PinState st const auto cfState = pinStateToCfPinState(state); HRESULT result = CfSetPinState(handleForPath(path).get(), cfState, CF_SET_PIN_FLAG_NONE, nullptr); - ForceShellRefresh(path); + // ForceShellRefresh(path); if (result != S_OK) {