diff --git a/QuickLook.Native.Shell32/Shell32.cpp b/QuickLook.Native.Shell32/Shell32.cpp index 9e4409e..17c14ba 100644 --- a/QuickLook.Native.Shell32/Shell32.cpp +++ b/QuickLook.Native.Shell32/Shell32.cpp @@ -103,7 +103,7 @@ void Shell32::getSelectedFromDesktop(PWCHAR buffer) if (FAILED(psw->FindWindowSW(&pvarLoc, &pvarLoc, SWC_DESKTOP, &phwnd, SWFO_NEEDDISPATCH, reinterpret_cast(&pwba)))) return; - if (isCursorActivated(reinterpret_cast(phwnd))) + if (isCursorActivated(reinterpret_cast(LongToHandle(phwnd)))) return; getSelectedInternal(pwba, buffer);