forked from mirrors/gecko-dev
Bug 530962 - Taskbar tab preview crashes [@ mozilla::widget::WindowHook::Lookup(unsigned int)]. r=robarnold
This commit is contained in:
parent
fc6417c11a
commit
f5937dc35c
1 changed files with 3 additions and 1 deletions
|
|
@ -120,8 +120,10 @@ WindowHook::LookupOrCreate(UINT nMsg) {
|
|||
|
||||
void
|
||||
WindowHook::DeleteIfEmpty(MessageData *data) {
|
||||
if (data->hook || data->monitors.IsEmpty())
|
||||
// Never remove a MessageData that has still a hook or monitor entries.
|
||||
if (data->hook || !data->monitors.IsEmpty())
|
||||
return;
|
||||
|
||||
MessageDataArray::index_type idx;
|
||||
idx = data - mMessageData.Elements();
|
||||
NS_ASSERTION(idx >= 0 && idx < mMessageData.Length(), "Attempted to delete MessageData that doesn't belong to this array!");
|
||||
|
|
|
|||
Loading…
Reference in a new issue