diff src/mbyte.c @ 25342:c4298ed56ffa v8.2.3208

patch 8.2.3208: dynamic library load error does not mention why it failed Commit: https://github.com/vim/vim/commit/1a3e5747b7df7ddda312bbfd18e04fc2122001fb Author: Martin Tournoij <martin@arp242.net> Date: Sat Jul 24 13:57:29 2021 +0200 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 https://github.com/vim/vim/issues/8621)
author Bram Moolenaar <Bram@vim.org>
date Sat, 24 Jul 2021 14:00:05 +0200
parents dc66d0284518
children e8e2c4d33b9b
line wrap: on
line diff
--- 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();