Bug #1053839 - Don't do anything with the preview on WM_DESTROY - r=jmathies

This commit is contained in:
Mike Kaply 2014-09-22 10:21:00 -05:00
parent 00b7e92c82
commit 5ec80a0c5e

View File

@ -407,7 +407,7 @@ TaskbarPreview::MainWindowHook(void *aContext,
if (nMsg == WM_DESTROY) {
// nsWindow is being destroyed
// We can't really do anything at this point including removing hooks
preview->mWnd = nullptr;
return false;
} else {
nsWindow *window = WinUtils::GetNSWindowPtr(preview->mWnd);
if (window) {