comctl32: Allow destruction of toolbar in BN_CLICKED handler.
This commit is contained in:
parent
054ed55d71
commit
7657913873
|
@ -5860,6 +5860,10 @@ TOOLBAR_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
|||
{
|
||||
SendMessageW (infoPtr->hwndNotify, WM_COMMAND,
|
||||
MAKEWPARAM(infoPtr->buttons[nHit].idCommand, BN_CLICKED), (LPARAM)hwnd);
|
||||
|
||||
/* In case we have just been destroyed... */
|
||||
if(!IsWindow(hwnd))
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue