зеркало из https://github.com/mozilla/gecko-dev.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:
Родитель
21a6ef5183
Коммит
4ecd17e424
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче