aboutsummaryrefslogtreecommitdiffstats
path: root/src/native
diff options
context:
space:
mode:
Diffstat (limited to 'src/native')
-rw-r--r--src/native/alcbind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/native/alcbind.c b/src/native/alcbind.c
index 13fdef2..d35f292 100644
--- a/src/native/alcbind.c
+++ b/src/native/alcbind.c
@@ -45,7 +45,7 @@ JNIEXPORT jint JNICALL Java_net_java_games_joal_ALCImpl_openDeviceNative
(JNIEnv *env, jobject obj, jstring deviceName) {
jint result;
ALubyte *str = NULL;
- if(deviceName == NULL) {
+ if(deviceName != NULL) {
str = (ALubyte*)(*env)->GetStringUTFChars(env,deviceName,NULL);
}
ALCdevice *device;