Bug 398435. Fix prbool bugs in xpcom. r=bsmedberg a=sayrer

This commit is contained in:
2007-10-15 16:40:09 -07:00
parent 93056468c7
commit 84afaf50ee
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;