0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2821: MS-Windows: unnessarily loading libraries when registering OLE

Problem:    MS-Windows: unnessarily loading libraries when registering OLE.
Solution:   Skip loading libraries when invoked with "-register".
This commit is contained in:
Bram Moolenaar
2021-05-01 17:46:03 +02:00
parent b6c2e9a010
commit 3d0e7a956a
4 changed files with 21 additions and 0 deletions

View File

@@ -161,6 +161,20 @@ main
break;
}
#endif
#ifdef MSWIN
// Need to find "-register" before loading any libraries.
for (i = 1; i < argc; ++i)
if (STRICMP(argv[i] + 1, "register") == 0
&& (argv[i][0] == '-' || argv[i][0] == '/'))
{
found_register_arg = TRUE;
break;
}
#endif
/*
* Various initialisations shared with tests.
*/
common_init(&params);
#ifdef VIMDLL