Skip to content

Commit

Permalink
windows: in DnD, always set pdwEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
valadaptive committed Jan 17, 2025
1 parent 59dd7ed commit 2153865
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/platform_impl/windows/drop_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ impl FileDropHandler {
unsafe {
*pdwEffect = drop_handler.cursor_effect;
}

S_OK
}

Expand All @@ -147,7 +148,7 @@ impl FileDropHandler {
pDataObj: *const IDataObject,
_grfKeyState: u32,
pt: POINTL,
_pdwEffect: *mut u32,
pdwEffect: *mut u32,
) -> HRESULT {
let drop_handler = unsafe { Self::from_interface(this) };
if drop_handler.valid {
Expand All @@ -168,6 +169,9 @@ impl FileDropHandler {
}
}
}
unsafe {
*pdwEffect = drop_handler.cursor_effect;
}

S_OK
}
Expand Down

0 comments on commit 2153865

Please sign in to comment.