From 2a3de2593da93042ce4ea2725909a92967962b79 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Thu, 9 Mar 2006 19:06:53 +0000 Subject: fix for strange open_via_path behavior svn path=/trunk/externals/clr/; revision=4675 --- clr.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clr.cpp') diff --git a/clr.cpp b/clr.cpp index e7c9291..201300b 100755 --- a/clr.cpp +++ b/clr.cpp @@ -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; } -- cgit v1.2.1