From 4bff62f4d87c0ccf7ff746ae43ff31508feec3e7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 21 Oct 2025 10:01:51 +0000 Subject: [PATCH] Fix Desktop file selection by using consistent IsCursorActivated check Co-authored-by: emako <24737061+emako@users.noreply.github.com> --- QuickLook.Native/QuickLook.Native32/Shell32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QuickLook.Native/QuickLook.Native32/Shell32.cpp b/QuickLook.Native/QuickLook.Native32/Shell32.cpp index 29b6fc4..9dcce9e 100644 --- a/QuickLook.Native/QuickLook.Native32/Shell32.cpp +++ b/QuickLook.Native/QuickLook.Native32/Shell32.cpp @@ -169,7 +169,7 @@ void Shell32::getSelectedFromDesktop(PWCHAR buffer) &pwba)))) return; - if (HelperMethods::IsCursorActivated(reinterpret_cast(LongToHandle(phwnd)))) + if (HelperMethods::IsCursorActivated(0)) return; CComPtr psp;