Chromium Code Reviews| Index: mojo/android/system/core_impl.cc |
| diff --git a/mojo/android/system/core_impl.cc b/mojo/android/system/core_impl.cc |
| index 55a374e50bcba68e1bff0ef41548c9278b2052a6..576346deeb0a4c0923c39d5b417c1f8b6ce503f1 100644 |
| --- a/mojo/android/system/core_impl.cc |
| +++ b/mojo/android/system/core_impl.cc |
| @@ -238,7 +238,7 @@ static jint ReadData(JNIEnv* env, |
| } |
| MojoResult result = |
| MojoReadData(mojo_handle, buffer_start, &buffer_size, flags); |
| - if (result < 0) { |
| + if (result != MOJO_RESULT_OK) { |
| return result; |
| } |
| return buffer_size; |
|
viettrungluu
2015/04/02 23:02:42
This is very wrong.
|
| @@ -281,7 +281,7 @@ static jint WriteData(JNIEnv* env, |
| uint32_t buffer_size = limit; |
| MojoResult result = |
| MojoWriteData(mojo_handle, buffer_start, &buffer_size, flags); |
| - if (result < 0) { |
| + if (result != MOJO_RESULT_OK) { |
| return result; |
| } |
| return buffer_size; |
|
viettrungluu
2015/04/02 23:02:42
"
|