From 7b23145c1cc0345ee193840f19da1b1a6bcc56f2 Mon Sep 17 00:00:00 2001 From: kbr Date: Sat, 24 Dec 2005 05:00:46 +0000 Subject: Worked around bug in OpenAL32.dll "wrapper" DLL which was incorrectly matching joal.dll with the wildcard "*oal.dll" while searching for "wrap_oal.dll", an actual (misnamed) OpenAL implementation. Bug caused a failure to look up a function pointer and subsequent dereference of NULL. Will report this bug to the OpenAL development team, but most expedient workaround was to rename joal.dll to joal_native.dll -- done here. git-svn-id: file:///home/mbien/NetBeansProjects/JOGAMP/joal-sync/git-svn/../svn-server-sync/joal/branches/gluegen-branch-1-0@98 03bf7f67-59de-4072-a415-9a990d468a3f --- make/build.xml | 2 +- src/java/net/java/games/joal/NativeLibLoader.java | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/make/build.xml b/make/build.xml index 7cdfd42..e04f629 100755 --- a/make/build.xml +++ b/make/build.xml @@ -616,7 +616,7 @@ - + diff --git a/src/java/net/java/games/joal/NativeLibLoader.java b/src/java/net/java/games/joal/NativeLibLoader.java index a5297af..394d1b4 100755 --- a/src/java/net/java/games/joal/NativeLibLoader.java +++ b/src/java/net/java/games/joal/NativeLibLoader.java @@ -42,7 +42,12 @@ class NativeLibLoader { static { AccessController.doPrivileged(new PrivilegedAction() { public Object run() { - System.loadLibrary("joal"); + // Workaround for problem in OpenAL32.dll, which is actually + // the "wrapper" DLL which looks for real OpenAL + // implementations like nvopenal.dll and "*oal.dll". + // joal.dll matches this wildcard and a bug in OpenAL32.dll + // causes a call through a null function pointer. + System.loadLibrary("joal_native"); // Workaround for 4845371. // Make sure the first reference to the JNI GetDirectBufferAddress is done -- cgit v1.2.3