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:
14
src/main.c
14
src/main.c
@@ -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(¶ms);
|
||||
|
||||
#ifdef VIMDLL
|
||||
|
Reference in New Issue
Block a user