зеркало из https://github.com/mozilla/pjs.git
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.
This commit is contained in:
Родитель
610a3c53e8
Коммит
bca6601e81
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче