From 2b098f572821a7a4437c1243f73be1c2815c0cc8 Mon Sep 17 00:00:00 2001 From: athomas Date: Tue, 18 Nov 2003 22:05:54 +0000 Subject: Proper handling of nulll parameter in alcOpenDevice() Somehow managed to undo (or not save) a recent fix before checking in the file. The fix should be in now. git-svn-id: file:///home/mbien/NetBeansProjects/JOGAMP/joal-sync/git-svn/../svn-server-sync/joal/trunk@59 03bf7f67-59de-4072-a415-9a990d468a3f --- src/native/alcbind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/native') 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; -- cgit v1.2.3