зеркало из https://github.com/mozilla/gecko-dev.git
Bug 800498 - Check for null context in MainWindowHook. r=jmathies, a=lsblakk
This commit is contained in:
Родитель
10370d5c71
Коммит
058c70cd34
|
@ -408,6 +408,9 @@ TaskbarPreview::MainWindowHook(void *aContext,
|
|||
NS_ASSERTION(nMsg == nsAppShell::GetTaskbarButtonCreatedMessage() ||
|
||||
nMsg == WM_DESTROY,
|
||||
"Window hook proc called with wrong message");
|
||||
NS_ASSERTION(aContext, "Null context in MainWindowHook");
|
||||
if (!aContext)
|
||||
return false;
|
||||
TaskbarPreview *preview = reinterpret_cast<TaskbarPreview*>(aContext);
|
||||
if (nMsg == WM_DESTROY) {
|
||||
// nsWindow is being destroyed
|
||||
|
|
Загрузка…
Ссылка в новой задаче