Index: mojo/public/cpp/bindings/lib/array_serialization_traits.h |
diff --git a/mojo/public/cpp/bindings/lib/array_serialization_traits.h b/mojo/public/cpp/bindings/lib/array_serialization_traits.h |
index 5e0e5afe8a0eaf73227f659c2ace84bfe5b80941..17817e01951b142f70e212e9099cf80d8ae9cad6 100644 |
--- a/mojo/public/cpp/bindings/lib/array_serialization_traits.h |
+++ b/mojo/public/cpp/bindings/lib/array_serialization_traits.h |
@@ -398,8 +398,8 @@ struct ArraySerializationStrategy<ArrayType, true> { |
for (size_t i = 0; i < input->size(); ++i) { |
// We don't short-circuit on failure since we can't know what the native |
// type's ParamTraits' expectations are. |
- success = |
- success && DeserializeNative_(input->at(i), &result[i], context); |
+ if (!DeserializeNative_(input->at(i), &result[i], context)) |
+ success = false; |
} |
output->Swap(&result); |
return success; |