From 68a6b0d1a33bda9ab90366e1196d96faa36f6b80 Mon Sep 17 00:00:00 2001 From: Bernardo Rufino Date: Wed, 20 Oct 2021 11:22:52 +0100 Subject: [PATCH] Change out value type for Parcel::hasFileDescriptorsInRange() Test: atest -d android.os.cts.ParcelTest Change-Id: Idfcad04de35750d291f3351378e8420e5b890abf --- core/jni/android_os_Parcel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/jni/android_os_Parcel.cpp b/core/jni/android_os_Parcel.cpp index 8fee610180ca3..f90325c89d533 100644 --- a/core/jni/android_os_Parcel.cpp +++ b/core/jni/android_os_Parcel.cpp @@ -641,7 +641,7 @@ static jboolean android_os_Parcel_hasFileDescriptorsInRange(JNIEnv* env, jclass Parcel* parcel = reinterpret_cast(nativePtr); if (parcel != NULL) { bool result; - status_t err = parcel->hasFileDescriptorsInRange(offset, length, result); + status_t err = parcel->hasFileDescriptorsInRange(offset, length, &result); if (err != NO_ERROR) { signalExceptionForError(env, clazz, err); return JNI_FALSE;