diff src/os_win32.c @ 30200:499c766d0c14 v9.0.0436

patch 9.0.0436: CI: running tests in parallel causes flakiness Commit: https://github.com/vim/vim/commit/2da11a4124989e3be917fa8024025d2e1452b363 Author: K.Takata <kentkt@csc.jp> Date: Sat Sep 10 13:03:12 2022 +0100 patch 9.0.0436: CI: running tests in parallel causes flakiness Problem: CI: running tests in parallel causes flakiness. Solution: Reorganize the MS-Windows runs. (Ken Takata, closes https://github.com/vim/vim/issues/11101)
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Sep 2022 14:15:04 +0200
parents 7ad136fb7fcd
children 0763cb330a65
line wrap: on
line diff
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -2834,7 +2834,11 @@ SaveConsoleTitleAndIcon(void)
 	return;
 
     // Extract the first icon contained in the Vim executable.
-    if (mch_icon_load((HANDLE *)&g_hVimIcon) == FAIL || g_hVimIcon == NULL)
+    if (
+# ifdef FEAT_LIBCALL
+	    mch_icon_load((HANDLE *)&g_hVimIcon) == FAIL ||
+# endif
+	    g_hVimIcon == NULL)
 	g_hVimIcon = ExtractIcon(NULL, (LPCSTR)exe_name, 0);
     if (g_hVimIcon != NULL)
 	g_fCanChangeIcon = TRUE;