Bug 398435 - "PRBool misuse bugs in xpcom/" [p=taras r=bsmedberg a1.9=sayrer]

This commit is contained in:
2007-10-19 16:26:52 -07:00
parent 50ca999690
commit 1fd1fd3713
13 changed files with 30 additions and 30 deletions

View File

@@ -193,7 +193,7 @@ NS_HasPendingEvents(nsIThread *thread)
#ifdef MOZILLA_INTERNAL_API
if (!thread) {
thread = NS_GetCurrentThread();
NS_ENSURE_STATE(thread);
NS_ENSURE_TRUE(thread, PR_FALSE);
}
#else
nsCOMPtr<nsIThread> current;
@@ -213,7 +213,7 @@ NS_ProcessNextEvent(nsIThread *thread, PRBool mayWait)
#ifdef MOZILLA_INTERNAL_API
if (!thread) {
thread = NS_GetCurrentThread();
NS_ENSURE_STATE(thread);
NS_ENSURE_TRUE(thread, PR_FALSE);
}
#else
nsCOMPtr<nsIThread> current;