diff --git a/native-src/placeholders_interface/Planceholders.cpp b/native-src/placeholders_interface/Planceholders.cpp index 360df8ee..415401fd 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; } @@ -606,7 +608,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) {