Bug 380454, r=benjamin, sr=sicking

git-svn-id: svn://10.0.0.236/trunk@245969 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Olli.Pettay%helsinki.fi 2008-02-19 13:15:37 +00:00
parent d5c46033b4
commit 3731f760c2

View File

@ -136,7 +136,7 @@ NS_DispatchToCurrentThread(nsIRunnable *event)
{
#ifdef MOZILLA_INTERNAL_API
nsIThread *thread = NS_GetCurrentThread();
NS_ENSURE_STATE(thread);
if (!thread) { return NS_ERROR_UNEXPECTED; }
#else
nsCOMPtr<nsIThread> thread;
nsresult rv = NS_GetCurrentThread(getter_AddRefs(thread));