Set RTLD_GLOBAL on loading external ODBC driver manager
Bill Medland
billmedland at mercuryspeed.com
Tue Jun 29 14:03:36 CDT 2004
Bill Medland (billmedland at mercuryspeed.com)
Set RTLD_GLOBAL when loading the odbc driver manager so that when it loads
its own driver that driver can call back into the manager (as the Oracle
Beta driver does, for example)
Index: wine/dlls/odbc32/proxyodbc.c
===================================================================
RCS file: /home/wine/wine/dlls/odbc32/proxyodbc.c,v
retrieving revision 1.25
diff -u -r1.25 proxyodbc.c
--- wine/dlls/odbc32/proxyodbc.c 2 Oct 2003 04:25:21 -0000 1.25
+++ wine/dlls/odbc32/proxyodbc.c 29 Jun 2004 18:58:43 -0000
@@ -236,7 +236,7 @@
s = "libodbc.so";
strcpy(gProxyHandle.dmLibName, s);
- gProxyHandle.dmHandle = wine_dlopen(gProxyHandle.dmLibName, RTLD_LAZY, error, sizeof(error));
+ gProxyHandle.dmHandle = wine_dlopen(gProxyHandle.dmLibName, RTLD_LAZY | RTLD_GLOBAL, error, sizeof(error));
if (gProxyHandle.dmHandle == NULL) /* fail to load unixODBC driver manager */
{
More information about the wine-patches
mailing list