From 1a3e5747b7df7ddda312bbfd18e04fc2122001fb Mon Sep 17 00:00:00 2001 From: Martin Tournoij Date: Sat, 24 Jul 2021 13:57:29 +0200 Subject: 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) --- src/mbyte.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mbyte.c') diff --git a/src/mbyte.c b/src/mbyte.c index 6fb046d34..3d5ad7636 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -4902,7 +4902,8 @@ iconv_enabled(int verbose) { verbose_enter(); semsg(_(e_loadlib), - hIconvDLL == 0 ? DYNAMIC_ICONV_DLL : DYNAMIC_MSVCRT_DLL); + hIconvDLL == 0 ? DYNAMIC_ICONV_DLL : DYNAMIC_MSVCRT_DLL, + GetWin32Error()); verbose_leave(); } iconv_end(); -- cgit v1.2.1