Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Unified Diff: mojo/system/core_impl.cc

Issue 75243005: Mojo: Fix MojoReadMessage() with *num_handles == 0. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/core_impl.cc
diff --git a/mojo/system/core_impl.cc b/mojo/system/core_impl.cc
index 6075149fa7c1253623b662c310b40af3b1a47cc9..1416501ddaa640176335d61f03e597f7cba6e231 100644
--- a/mojo/system/core_impl.cc
+++ b/mojo/system/core_impl.cc
@@ -322,7 +322,7 @@ MojoResult CoreImpl::ReadMessage(
// Easy case: won't receive any handles.
if (!num_handles || *num_handles == 0)
- return dispatcher->ReadMessage(bytes, num_bytes, 0, NULL, flags);
+ return dispatcher->ReadMessage(bytes, num_bytes, NULL, num_handles, flags);
std::vector<scoped_refptr<Dispatcher> > dispatchers;
MojoResult rv = dispatcher->ReadMessage(bytes, num_bytes,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698