Bug 380454, r=benjamin, sr=sicking

This commit is contained in:
2008-02-19 05:15:37 -08:00
parent d5f3a9063a
commit b5751da843

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));