diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2006-03-09 19:06:53 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2006-03-09 19:06:53 +0000 |
commit | 2a3de2593da93042ce4ea2725909a92967962b79 (patch) | |
tree | 7dcf0755b87b728914c99f4f37f3c272749cae6b /clr.cpp | |
parent | 2bd3c408f06b21c621c9471c45ef8be0b1487892 (diff) |
fix for strange open_via_path behavior
svn path=/trunk/externals/clr/; revision=4675
Diffstat (limited to 'clr.cpp')
-rwxr-xr-x | clr.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -909,7 +909,8 @@ void clr_setup(void) // search in the PD path int fd; if ((fd = open_via_path("",CORELIB,"." DLLEXT,dirbuf,&nameptr,MAXPDSTRING,1)) >= 0) { - strcat(dirbuf,"/" CORELIB "." DLLEXT); + if(dirbuf != nameptr) // fix for the fact that open_via_path doesn't return a path, when it's found in . + strcat(dirbuf,"/" CORELIB "." DLLEXT); close(fd); } else @@ -918,7 +919,7 @@ void clr_setup(void) // look for PureData.dll MonoAssembly *assembly = mono_domain_assembly_open (monodomain,dirbuf); if(!assembly) { - error("clr: assembly " CORELIB "." DLLEXT " not found!"); + error("CLR - assembly %s not found!",dirbuf); return; } |