summaryrefslogtreecommitdiff
path: root/graphics/panorama/files/patch-hlapi-plugin_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/panorama/files/patch-hlapi-plugin_manager.cpp')
-rw-r--r--graphics/panorama/files/patch-hlapi-plugin_manager.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/graphics/panorama/files/patch-hlapi-plugin_manager.cpp b/graphics/panorama/files/patch-hlapi-plugin_manager.cpp
new file mode 100644
index 000000000000..5c44a1091c1d
--- /dev/null
+++ b/graphics/panorama/files/patch-hlapi-plugin_manager.cpp
@@ -0,0 +1,15 @@
+--- hlapi/plugin_manager.cpp.orig Thu Nov 21 01:54:16 2002
++++ hlapi/plugin_manager.cpp Wed Feb 2 18:54:59 2005
+@@ -48,6 +48,12 @@
+ void* pvHandle = NULL;
+ bool gAbsolutePath = ( rktNAME[0] == '/' );
+
++ /*
++ * Reset dlerror() since it can contain error from previous
++ * call to dlopen()/dlsym().
++ */
++ dlerror();
++
+ if ( gAbsolutePath )
+ {
+ pvHandle = dlopen (rktNAME.c_str(), RTLD_NOW | RTLD_GLOBAL);