From b955c230da60c2ce4d64dc11348b52d445ebde1e Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 24 Oct 2009 17:23:58 +0200 Subject: Strictly require particular VFS API version We're not forward or backward compatible and it's causing troubles with mixed plugins. --- vfs/UVFSCore.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vfs/UVFSCore.pas b/vfs/UVFSCore.pas index 7b4a110..7516544 100644 --- a/vfs/UVFSCore.pas +++ b/vfs/UVFSCore.pas @@ -1138,7 +1138,7 @@ begin if ModuleHandler = nil then DebugMsg([' XXX Error loading module: ', dlerror]) else try @VFSVersionFunc := dlsym(ModuleHandler, 'VFSVersion'); - if (@VFSVersionFunc <> nil) and (VFSVersionFunc >= ConstVFSVersionRequired) then begin + if (@VFSVersionFunc <> nil) and (VFSVersionFunc = ConstVFSVersionRequired) then begin PluginItem := TVFSPlugin.Create(ModuleHandler); PluginItem.FullPath := IncludeTrailingPathDelimiter(s) + Buf; PluginList.Add(PluginItem); -- cgit v1.2.3