mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 859646 - fix b2g code that checks what infallible TArray::EnsureLengthAtleast() returns r=jlebar
This commit is contained in:
parent
ec26428656
commit
c318b7cf14
@ -480,10 +480,7 @@ SystemWorkerManager::RegisterRilWorker(unsigned int aClientId,
|
||||
{
|
||||
NS_ENSURE_TRUE(!JSVAL_IS_PRIMITIVE(aWorker), NS_ERROR_UNEXPECTED);
|
||||
|
||||
if (!mRilConsumers.EnsureLengthAtLeast(aClientId + 1)) {
|
||||
NS_WARNING("Failed to ensure minimum length of mRilConsumers");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
mRilConsumers.EnsureLengthAtLeast(aClientId + 1);
|
||||
|
||||
if (mRilConsumers[aClientId]) {
|
||||
NS_WARNING("RilConsumer already registered");
|
||||
|
Loading…
Reference in New Issue
Block a user