diff --git a/layout/xul/base/src/tree/src/nsTreeBoxObject.cpp b/layout/xul/base/src/tree/src/nsTreeBoxObject.cpp index 3374a8c0cfc..f2cd94339d5 100644 --- a/layout/xul/base/src/tree/src/nsTreeBoxObject.cpp +++ b/layout/xul/base/src/tree/src/nsTreeBoxObject.cpp @@ -183,7 +183,7 @@ NS_IMETHODIMP nsTreeBoxObject::GetView(nsITreeView * *aView) if (!mView) { // No tree builder, create a tree content view. nsresult rv = NS_NewTreeContentView(getter_AddRefs(mView)); - NS_ENSURE_TRUE(rv, rv); + NS_ENSURE_SUCCESS(rv, rv); } // Initialise the frame and view