Merge "libbinder: Status writeToParcel no OK on ERR" am: 3ee5c2c97a am: 2ef48decc4
am: 9683ad4afd
Change-Id: I8a822e8041a1027f0935238a6d64bbcd57a7bb7e
diff --git a/libs/binder/Status.cpp b/libs/binder/Status.cpp
index a9d5055..e318a7f 100644
--- a/libs/binder/Status.cpp
+++ b/libs/binder/Status.cpp
@@ -136,7 +136,7 @@
// Something really bad has happened, and we're not going to even
// try returning rich error data.
if (mException == EX_TRANSACTION_FAILED) {
- return mErrorCode;
+ return mErrorCode == OK ? FAILED_TRANSACTION : mErrorCode;
}
status_t status = parcel->writeInt32(mException);