From 3deead646f03e647c8eff2c024efdacfb5e54f37 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 16 Mar 2021 14:06:42 +1100 Subject: Fix dlopen call. --- doc/Scintilla5Migration.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/Scintilla5Migration.html') diff --git a/doc/Scintilla5Migration.html b/doc/Scintilla5Migration.html index 97f019e62..3f8b916ee 100644 --- a/doc/Scintilla5Migration.html +++ b/doc/Scintilla5Migration.html @@ -187,7 +187,7 @@

Load Lexilla using the appropriate operating system function: either LoadLibrary on Windows or dlopen on Unix.

HMODULE lexillaLibrary = LoadLibrary(szLexillaPath);
- void *lexillaLibrary = szLexillaPath(libPath, RTLD_LAZY);
+ void *lexillaLibrary = dlopen(szLexillaPath, RTLD_LAZY);

Find the CreateLexer function inside the shared library using either GetProcAddress on Windows or dlsym on Unix.

FARPROC fun = GetProcAddress(lexillaLibrary, LEXILLA_CREATELEXER);
-- cgit v1.2.3