From 0bb424ab18e30de2f365489a00a2e582caf42a3b Mon Sep 17 00:00:00 2001 From: Jim Mathies Date: Thu, 23 Jun 2011 18:02:53 -0500 Subject: [PATCH] Bug 664974 - Work around for _SEH_prolog plugin stack overflow crashes. r=bsmedberg --- dom/plugins/ipc/PluginInstanceParent.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dom/plugins/ipc/PluginInstanceParent.cpp b/dom/plugins/ipc/PluginInstanceParent.cpp index 987f975c31d..de7310f1558 100644 --- a/dom/plugins/ipc/PluginInstanceParent.cpp +++ b/dom/plugins/ipc/PluginInstanceParent.cpp @@ -1597,6 +1597,12 @@ PluginInstanceParent::PluginWindowHookProc(HWND hWnd, break; } + if (self->mPluginWndProc == PluginWindowHookProc) { + NS_NOTREACHED( + "PluginWindowHookProc invoking mPluginWndProc w/" + "mPluginWndProc == PluginWindowHookProc????"); + return DefWindowProc(hWnd, message, wParam, lParam); + } return ::CallWindowProc(self->mPluginWndProc, hWnd, message, wParam, lParam); }