From e1ba7306f6209dcfac1532456854c6c2231b39f6 Mon Sep 17 00:00:00 2001 From: "darin%meer.net" Date: Mon, 6 Oct 2003 02:14:02 +0000 Subject: [PATCH] fixing potential bustage --- netwerk/base/src/nsRequestObserverProxy.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/netwerk/base/src/nsRequestObserverProxy.cpp b/netwerk/base/src/nsRequestObserverProxy.cpp index d15db65885ce..67fd8e1af52d 100644 --- a/netwerk/base/src/nsRequestObserverProxy.cpp +++ b/netwerk/base/src/nsRequestObserverProxy.cpp @@ -84,8 +84,8 @@ ProxyRelease(nsIEventQueue *eventQ, nsIRequestObserver *obs) ProxyRelease_EventHandlerFunc, ProxyRelease_EventCleanupFunc); - PRStatus rv = eventQ->PostEvent(ev); - NS_ASSERTION(rv == PR_SUCCESS, "PostEvent failed"); + nsresult rv = eventQ->PostEvent(ev); + NS_ASSERTION(NS_SUCCEEDED(rv), "PostEvent failed"); } //----------------------------------------------------------------------------- @@ -314,8 +314,7 @@ nsRequestObserverProxy::FireEvent(nsARequestObserverEvent *event) { NS_ENSURE_TRUE(mEventQ, NS_ERROR_NOT_INITIALIZED); - PRStatus status = mEventQ->PostEvent(event->GetPLEvent()); - return status == PR_SUCCESS ? NS_OK : NS_ERROR_FAILURE; + return mEventQ->PostEvent(event->GetPLEvent()); } nsresult