diff --git a/mozilla/xpcom/src/nsEventQueueService.cpp b/mozilla/xpcom/src/nsEventQueueService.cpp index 069b1295da7..b16a64be476 100644 --- a/mozilla/xpcom/src/nsEventQueueService.cpp +++ b/mozilla/xpcom/src/nsEventQueueService.cpp @@ -230,6 +230,7 @@ nsEventQueueServiceImpl::GetThreadEventQueue(PRThread* aThread, PLEventQueue** a *aResult = evQueueEntry->GetEventQueue(); } else { // XXX: Need error code for requesting an event queue when none exists... + *aResult = NULL; rv = NS_ERROR_FAILURE; goto done; } diff --git a/mozilla/xpcom/threads/nsEventQueueService.cpp b/mozilla/xpcom/threads/nsEventQueueService.cpp index 069b1295da7..b16a64be476 100644 --- a/mozilla/xpcom/threads/nsEventQueueService.cpp +++ b/mozilla/xpcom/threads/nsEventQueueService.cpp @@ -230,6 +230,7 @@ nsEventQueueServiceImpl::GetThreadEventQueue(PRThread* aThread, PLEventQueue** a *aResult = evQueueEntry->GetEventQueue(); } else { // XXX: Need error code for requesting an event queue when none exists... + *aResult = NULL; rv = NS_ERROR_FAILURE; goto done; }