From ad825cf79649fc0bbd6d666bc82e31b17ec63d0d Mon Sep 17 00:00:00 2001 From: "caillon%returnzero.com" Date: Sat, 14 Sep 2002 10:28:14 +0000 Subject: [PATCH] 164453 - Fixing a crasher in nsEventStateManager::DispatchNewEvent() Fix contributed by Peter A Jonsson r=bryner sr=jst --- content/events/src/nsEventStateManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/events/src/nsEventStateManager.cpp b/content/events/src/nsEventStateManager.cpp index 7ece8793ac0..dae90234b98 100644 --- a/content/events/src/nsEventStateManager.cpp +++ b/content/events/src/nsEventStateManager.cpp @@ -4298,7 +4298,7 @@ nsEventStateManager::DispatchNewEvent(nsISupports* aTarget, nsIDOMEvent* aEvent, nsresult ret = NS_OK; nsCOMPtr privEvt(do_QueryInterface(aEvent)); - if (aEvent) { + if (privEvt) { nsCOMPtr eventTarget(do_QueryInterface(aTarget)); privEvt->SetTarget(eventTarget);