Mercurial > hg > xemacs-beta
diff src/sysdll.c @ 2855:612eb81b76eb
[xemacs-hg @ 2005-07-12 12:22:11 by malcolmp]
Fixed a crash with the MacOS X DLL code that appeared in Tiger.
author | malcolmp |
---|---|
date | Tue, 12 Jul 2005 12:22:13 +0000 |
parents | 0bcc1e4dfd91 |
children | 5989b9bbb612 |
line wrap: on
line diff
--- a/src/sysdll.c Mon Jul 11 21:51:08 2005 +0000 +++ b/src/sysdll.c Tue Jul 12 12:22:13 2005 +0000 @@ -228,9 +228,15 @@ NSModule out; NSObjectFileImageReturnCode ret; + /* + * MacOS X dll support is for bundles, not the current executable, so return + * NULL is this case. However, dll_function() uses a special hack where a + * NULL handle can be used to find executable symbols. This satisfies the + * needs of ui-gtk.c but is not a general solution. + */ if (NILP (fname)) { - soname = NULL; + return NULL; } else {