mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 16:34:18 +09:00
[client,android] fix platform dependent jlong size
always cast to int64_t to avoid format string issues.
This commit is contained in:
@@ -732,7 +732,8 @@ JNIEXPORT jboolean JNICALL Java_com_freerdp_freerdpcore_services_LibFreeRDP_free
|
||||
|
||||
if (!inst || !inst->context)
|
||||
{
|
||||
WLog_FATAL(TAG, "(env=%p, cls=%p, instance=%lld", (void*)env, (void*)cls, instance);
|
||||
WLog_FATAL(TAG, "(env=%p, cls=%p, instance=%" PRId64, (void*)env, (void*)cls,
|
||||
(int64_t)instance);
|
||||
return JNI_FALSE;
|
||||
}
|
||||
|
||||
@@ -753,7 +754,8 @@ JNIEXPORT jboolean JNICALL Java_com_freerdp_freerdpcore_services_LibFreeRDP_free
|
||||
|
||||
if (!inst || !inst->context || !cls || !env)
|
||||
{
|
||||
WLog_FATAL(TAG, "(env=%p, cls=%p, instance=%lld", (void*)env, (void*)cls, instance);
|
||||
WLog_FATAL(TAG, "(env=%p, cls=%p, instance=%" PRId64, (void*)env, (void*)cls,
|
||||
(int64_t)instance);
|
||||
return JNI_FALSE;
|
||||
}
|
||||
|
||||
@@ -792,7 +794,8 @@ Java_com_freerdp_freerdpcore_services_LibFreeRDP_freerdp_1update_1graphics(JNIEn
|
||||
|
||||
if (!env || !cls || !inst)
|
||||
{
|
||||
WLog_FATAL(TAG, "(env=%p, cls=%p, instance=%lld", (void*)env, (void*)cls, instance);
|
||||
WLog_FATAL(TAG, "(env=%p, cls=%p, instance=%" PRId64, (void*)env, (void*)cls,
|
||||
(int64_t)instance);
|
||||
return JNI_FALSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user