[Feature][T106][task-view-1120] support ng-ecall, for call back set msd
error
Only Configure: No
Affected branch: unknown
Affected module: log
Is it affected on both ZXIC and MTK: both
Self-test: no
Doc Update: no
Change-Id: I7a57b51ab548858a5f6183bc610666d738c6ed3c
diff --git a/cap/zx297520v3/src/lynq/lib/liblynq-call/lynq_call_ecall.cpp b/cap/zx297520v3/src/lynq/lib/liblynq-call/lynq_call_ecall.cpp
index f594388..15dc6dc 100755
--- a/cap/zx297520v3/src/lynq/lib/liblynq-call/lynq_call_ecall.cpp
+++ b/cap/zx297520v3/src/lynq/lib/liblynq-call/lynq_call_ecall.cpp
@@ -451,9 +451,9 @@
char lynq_msd_data[MSD_MAX_LENGTH*2+1]={0};
unsigned int i;
- if(handle==NULL || ((*handle) >= LYNQ_CALL_MAX) || msd_length > MSD_MAX_LENGTH || msd_length <= 0 || msd_data ==NULL)
+ if(handle==NULL || ((*handle) <= 0) || msd_length > MSD_MAX_LENGTH || msd_length <= 0 || msd_data ==NULL)
{
- LYERRLOG("lynq_set_msd handle is NULL or handle %d is null or msd_length %d is greater than %d or msd_data %s is NULL, parameter error", handle, msd_length,MSD_MAX_LENGTH, msd_data);
+ LYERRLOG("lynq_set_msd handle %d is NULL or *handle is less 0 or msd_length %d is greater than 140 or msd_data %d is NULL, param error", handle, msd_length, msd_data);
return LYNQ_E_PARAMETER_ANONALY;
}