Bug 117472 [Xlib] Crash in HandleQueueXtProc()

patch by Roland.Mainz@informatik.med.uni-giessen.de r=timeless a=asa


git-svn-id: svn://10.0.0.236/trunk@112501 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mac.com
2002-01-21 21:05:54 +00:00
parent e6d4d33306
commit b623a65319

View File

@@ -322,6 +322,10 @@ NS_IMETHODIMP nsAppShell::Spinup()
/* Ask again nicely for the event queue now that we have created one. */
rv = eventQService->GetThreadEventQueue(NS_CURRENT_THREAD, getter_AddRefs(mEventQueue));
if (NS_FAILED(rv)) {
NS_WARNING("Could not get the thread event queue");
return rv;
}
}
ListenToEventQueue(mEventQueue, PR_TRUE);
@@ -398,6 +402,11 @@ PR_END_EXTERN_C
NS_IMETHODIMP nsAppShell::ListenToEventQueue(nsIEventQueue *aQueue,
PRBool aListen)
{
if (!mEventQueue) {
NS_WARNING("nsAppShell::ListenToEventQueue(): No event queue available.");
return NS_ERROR_NOT_INITIALIZED;
}
#ifdef DEBUG_APPSHELL
printf("ListenToEventQueue(%p, %d) this=%p\n", aQueue, aListen, this);
#endif