aboutsummaryrefslogtreecommitdiff
path: root/clr.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2006-03-09 19:06:53 +0000
committerThomas Grill <xovo@users.sourceforge.net>2006-03-09 19:06:53 +0000
commit2a3de2593da93042ce4ea2725909a92967962b79 (patch)
tree7dcf0755b87b728914c99f4f37f3c272749cae6b /clr.cpp
parent2bd3c408f06b21c621c9471c45ef8be0b1487892 (diff)
fix for strange open_via_path behavior
svn path=/trunk/externals/clr/; revision=4675
Diffstat (limited to 'clr.cpp')
-rwxr-xr-xclr.cpp5
1 files changed, 3 insertions, 2 deletions
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;
}