--- a/ExternalLibraryFunction.st Sat Nov 19 13:05:12 2016 +0100
+++ b/ExternalLibraryFunction.st Mon Nov 21 12:00:11 2016 +0100
@@ -949,7 +949,7 @@
This is useful, if some code has a hardcoded dll-name in it, which needs to be changed,
but you do not want or cannot recompile the methods (i.e. no source avail)"
- |handle nameString filename dllPathes|
+ |handle nameString filename dllPaths|
(ObjectFileLoader notNil and:[ObjectFileLoader canLoadObjectFiles]) ifFalse:[
self error:('ObjectFileLoader cannot load dll/module: "%1"' bindWith:nameString).
@@ -969,13 +969,13 @@
filename isAbsolute ifFalse:[
"First ask the class defining the ExternalFunction for the location of the dlls ..."
- dllPathes := #().
+ dllPaths := #().
owningClass notNil ifTrue:[
- dllPathes := owningClass dllPath.
+ dllPaths := owningClass dllPath.
].
".. then ask the system"
- dllPathes := dllPathes, self class dllPath.
- dllPathes do:[:eachDirectory |
+ dllPaths := dllPaths, self class dllPath.
+ dllPaths do:[:eachDirectory |
|libraryName|
libraryName := eachDirectory asFilename construct:nameString.
@@ -989,7 +989,7 @@
^ self loadLibrary:(filename withSuffix:ObjectFileLoader sharedLibrarySuffix)
].
- self
+ self
error:('Cannot find or load dll/module: "%1"' bindWith:nameString)
mayProceed:true.
^ nil