summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorathomas <[email protected]>2003-11-18 22:05:54 +0000
committerathomas <[email protected]>2003-11-18 22:05:54 +0000
commit2b098f572821a7a4437c1243f73be1c2815c0cc8 (patch)
tree4c6bf0f14ed8077d7e832dd9dd7ba033575fc127
parent75210d2be19a7e84859cf07cd69e67cf77893b5e (diff)
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
-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;