From 5960528106491894481e0e4defda4b0cdcddc0a2 Mon Sep 17 00:00:00 2001 From: "jband%netscape.com" Date: Tue, 18 Apr 2000 21:44:38 +0000 Subject: [PATCH] add an assert for a whacky case that is not supposed to happen but biting me a while back when some other code was broken. This has been kicking around my tree for a while. git-svn-id: svn://10.0.0.236/trunk@66315 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/libreg/xpcom/nsRegistry.cpp | 1 + mozilla/xpcom/components/nsRegistry.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/mozilla/modules/libreg/xpcom/nsRegistry.cpp b/mozilla/modules/libreg/xpcom/nsRegistry.cpp index f72d8a42ca4..e84820c5cef 100644 --- a/mozilla/modules/libreg/xpcom/nsRegistry.cpp +++ b/mozilla/modules/libreg/xpcom/nsRegistry.cpp @@ -712,6 +712,7 @@ NS_IMETHODIMP nsRegistry::GetStringUTF8( nsRegistryKey baseKey, const char *path { // Convert status. rv = regerr2nsresult( err ); + NS_ASSERTION(NS_FAILED(rv), "returning success code on failure"); } return rv; diff --git a/mozilla/xpcom/components/nsRegistry.cpp b/mozilla/xpcom/components/nsRegistry.cpp index f72d8a42ca4..e84820c5cef 100644 --- a/mozilla/xpcom/components/nsRegistry.cpp +++ b/mozilla/xpcom/components/nsRegistry.cpp @@ -712,6 +712,7 @@ NS_IMETHODIMP nsRegistry::GetStringUTF8( nsRegistryKey baseKey, const char *path { // Convert status. rv = regerr2nsresult( err ); + NS_ASSERTION(NS_FAILED(rv), "returning success code on failure"); } return rv;