]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0641: MS-Windows: OLE enabled in console version v9.1.0641
authorKen Takata <kentkt@csc.jp>
Mon, 29 Jul 2024 18:57:19 +0000 (20:57 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 29 Jul 2024 18:57:19 +0000 (20:57 +0200)
Problem:  MS-Windows: OLE enabled in console version, may cause hang
          (Linda_pp)
Solution: Disable OLE for console version (Ken Takata)

If VIMDLL was enabled, a message box for registering OLE might be shown
even if Vim was executed in a console. (See #15372)

Enabling OLE in a console is not so useful.  Disable it.

fixes: #15372
closes: #15385

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/gui_w32.c
src/version.c

index 721c4480d52fc5e82906212c4fcb5fdcd198fea6..78f252a8b75d3dbe867caff95000e9bb85b71766 100644 (file)
@@ -5522,6 +5522,9 @@ gui_mch_prepare(int *argc, char **argv)
     }
 
 #ifdef FEAT_OLE
+# ifdef VIMDLL
+    if (mch_is_gui_executable())
+# endif
     {
        int     bDoRestart = FALSE;
 
index 53c1118937eb6041d5778488fa1e4577743aea01..8afbd0148777ef22cbf14e3a100c6695853d4918 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    641,
 /**/
     640,
 /**/