0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.3208: dynamic library load error does not mention why it failed

Problem:    Dynamic library load error does not mention why it failed.
Solution:   Add the error message. (Martin Tournoij, closes #8621)
This commit is contained in:
Martin Tournoij
2021-07-24 13:57:29 +02:00
committed by Bram Moolenaar
parent 5a234eb18e
commit 1a3e5747b7
14 changed files with 45 additions and 30 deletions

View File

@@ -125,10 +125,12 @@ typedef PySliceObject PySliceObject_T;
# endif
# define close_dll dlclose
# define symbol_from_dll dlsym
# define load_dll_error dlerror
# else
# define load_dll vimLoadLib
# define close_dll FreeLibrary
# define symbol_from_dll GetProcAddress
# define load_dll_error GetWin32Error
# endif
/*
* Wrapper defines
@@ -795,7 +797,7 @@ py3_runtime_link_init(char *libname, int verbose)
if (!hinstPy3)
{
if (verbose)
semsg(_(e_loadlib), libname);
semsg(_(e_loadlib), libname, load_dll_error());
return FAIL;
}