зеркало из https://github.com/mozilla/gecko-dev.git
Bug 380454, r=benjamin, sr=sicking
This commit is contained in:
Родитель
dc1dd6ad65
Коммит
922f5f425a
|
@ -136,7 +136,7 @@ NS_DispatchToCurrentThread(nsIRunnable *event)
|
||||||
{
|
{
|
||||||
#ifdef MOZILLA_INTERNAL_API
|
#ifdef MOZILLA_INTERNAL_API
|
||||||
nsIThread *thread = NS_GetCurrentThread();
|
nsIThread *thread = NS_GetCurrentThread();
|
||||||
NS_ENSURE_STATE(thread);
|
if (!thread) { return NS_ERROR_UNEXPECTED; }
|
||||||
#else
|
#else
|
||||||
nsCOMPtr<nsIThread> thread;
|
nsCOMPtr<nsIThread> thread;
|
||||||
nsresult rv = NS_GetCurrentThread(getter_AddRefs(thread));
|
nsresult rv = NS_GetCurrentThread(getter_AddRefs(thread));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче