提交 186894e7 编写于 作者: S serb

8033573: [parfait] warning from b128 for...

8033573: [parfait] warning from b128 for share/native/sun/awt/splashscreen/java_awt_SplashScreen.c: JNI exception pending
Reviewed-by: anthony, bagiras
上级 5385d420
/*
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
......@@ -24,8 +24,9 @@
*/
#include "splashscreen_impl.h"
#include <jni.h>
#include <jlong_md.h>
#include <jni.h>
#include <jni_util.h>
#include <sizecalc.h>
JNIEXPORT jint JNICALL
......@@ -212,8 +213,9 @@ JNIEXPORT jboolean JNICALL Java_java_awt_SplashScreen__1setImageData
if (!splash) {
return JNI_FALSE;
}
size = (*env)->GetArrayLength(env, data);
pBytes = (*env)->GetByteArrayElements(env, data, NULL);
CHECK_NULL_RETURN(pBytes, JNI_FALSE);
size = (*env)->GetArrayLength(env, data);
rc = SplashLoadMemory(pBytes, size);
(*env)->ReleaseByteArrayElements(env, data, pBytes, JNI_ABORT);
return rc ? JNI_TRUE : JNI_FALSE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册