if (isBookmarkFolder)
if (isBookmarkFolder && (source != kNC_BookmarksRoot) && (source != kNC_IEFavoritesRoot))
nsBookmarksService::GetAllCmds(nsIRDFResource* source,			       nsISimpleEnumerator/*<nsIRDFResource>*/** commands){	nsCOMPtr<nsISupportsArray>	cmdArray;	nsresult			rv;	rv = NS_NewISupportsArray(getter_AddRefs(cmdArray));	if (NS_FAILED(rv))	return(rv);	// determine type	PRBool	isBookmark = PR_FALSE, isBookmarkFolder = PR_FALSE, isBookmarkSeparator = PR_FALSE;	mInner->HasAssertion(source, kRDF_type, kNC_Bookmark, PR_TRUE, &isBookmark);	mInner->HasAssertion(source, kRDF_type, kNC_Folder, PR_TRUE, &isBookmarkFolder);	mInner->HasAssertion(source, kRDF_type, kNC_BookmarkSeparator, PR_TRUE, &isBookmarkSeparator);	if (isBookmark || isBookmarkFolder || isBookmarkSeparator)	{		cmdArray->AppendElement(kNC_BookmarkCommand_NewBookmark);		cmdArray->AppendElement(kNC_BookmarkCommand_NewFolder);		cmdArray->AppendElement(kNC_BookmarkCommand_NewSeparator);	}	if (isBookmark)	{		cmdArray->AppendElement(kNC_BookmarkCommand_DeleteBookmark);	}	if (isBookmarkFolder)	{		cmdArray->AppendElement(kNC_BookmarkCommand_DeleteBookmarkFolder);	}	if (isBookmarkSeparator)	{		cmdArray->AppendElement(kNC_BookmarkCommand_DeleteBookmarkSeparator);	}	nsISimpleEnumerator		*result = new nsArrayEnumerator(cmdArray);	if (!result)		return(NS_ERROR_OUT_OF_MEMORY);	NS_ADDREF(result);	*commands = result;	return(NS_OK);}