1
0
forked from aniani/vim

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

@@ -529,6 +529,10 @@ vimLoadLib(char *name)
{
HINSTANCE dll = NULL;
// No need to load any library when registering OLE.
if (found_register_arg)
return dll;
// NOTE: Do not use mch_dirname() and mch_chdir() here, they may call
// vimLoadLib() recursively, which causes a stack overflow.
if (exe_path == NULL)