mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-02-28 01:00:17 +08:00
safely cast from 32bit long to 64bit HWND
This commit is contained in:
@@ -103,7 +103,7 @@ void Shell32::getSelectedFromDesktop(PWCHAR buffer)
|
||||
if (FAILED(psw->FindWindowSW(&pvarLoc, &pvarLoc, SWC_DESKTOP, &phwnd, SWFO_NEEDDISPATCH, reinterpret_cast<IDispatch**>(&pwba))))
|
||||
return;
|
||||
|
||||
if (isCursorActivated(reinterpret_cast<HWND>(phwnd)))
|
||||
if (isCursorActivated(reinterpret_cast<HWND>(LongToHandle(phwnd))))
|
||||
return;
|
||||
|
||||
getSelectedInternal(pwba, buffer);
|
||||
|
||||
Reference in New Issue
Block a user