mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
explorerframe: Do not block clicks on the item button.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=28786 Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
20b1dd9b15
commit
7ac196aa0c
1 changed files with 2 additions and 12 deletions
|
@ -678,7 +678,7 @@ static LRESULT on_nm_click(NSTC2Impl *This, NMHDR *nmhdr)
|
|||
{
|
||||
TVHITTESTINFO tvhit;
|
||||
IShellItem *psi;
|
||||
HRESULT hr;
|
||||
|
||||
TRACE("%p (%p)\n", This, nmhdr);
|
||||
|
||||
GetCursorPos(&tvhit.pt);
|
||||
|
@ -690,17 +690,7 @@ static LRESULT on_nm_click(NSTC2Impl *This, NMHDR *nmhdr)
|
|||
|
||||
/* TVHT_ maps onto the corresponding NSTCEHT_ */
|
||||
psi = shellitem_from_treeitem(This, tvhit.hItem);
|
||||
hr = events_OnItemClick(This, psi, tvhit.flags, NSTCECT_LBUTTON);
|
||||
|
||||
/* The expando should not be expanded unless
|
||||
* double-clicked. */
|
||||
if(tvhit.flags == TVHT_ONITEMBUTTON)
|
||||
return TRUE;
|
||||
|
||||
if(SUCCEEDED(hr))
|
||||
return FALSE;
|
||||
else
|
||||
return TRUE;
|
||||
return FAILED(events_OnItemClick(This, psi, tvhit.flags, NSTCECT_LBUTTON));
|
||||
}
|
||||
|
||||
static LRESULT on_wm_mbuttonup(NSTC2Impl *This, WPARAM wParam, LPARAM lParam)
|
||||
|
|
Loading…
Reference in a new issue