mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 15:22:21 +00:00
[SHELL32]
- Query the drop effect from the key state. After latest wine sync we correctly get all possible effects instead of the effect of the last DragOver event. CORE-11681 svn path=/trunk/; revision=72026
This commit is contained in:
parent
b139d1b07b
commit
21c051f4ff
1 changed files with 6 additions and 1 deletions
|
@ -1177,7 +1177,7 @@ BOOL CFSFolder::QueryDrop(DWORD dwKeyState, LPDWORD pdwEffect)
|
|||
|
||||
if (fAcceptFmt) { /* Does our interpretation of the keystate ... */
|
||||
*pdwEffect = KeyStateToDropEffect (dwKeyState);
|
||||
|
||||
|
||||
if (*pdwEffect == DROPEFFECT_NONE)
|
||||
*pdwEffect = dwEffect;
|
||||
|
||||
|
@ -1236,6 +1236,11 @@ HRESULT WINAPI CFSFolder::Drop(IDataObject *pDataObject,
|
|||
{
|
||||
TRACE("(%p) object dropped, effect %u\n", this, *pdwEffect);
|
||||
|
||||
if (!pdwEffect)
|
||||
return E_INVALIDARG;
|
||||
|
||||
QueryDrop(dwKeyState, pdwEffect);
|
||||
|
||||
BOOL fIsOpAsync = FALSE;
|
||||
CComPtr<IAsyncOperation> pAsyncOperation;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue