Mercurial > vim
comparison src/main.c @ 24563:30ad18017e1c v8.2.2821
patch 8.2.2821: MS-Windows: unnessarily loading libraries when registering OLE
Commit: https://github.com/vim/vim/commit/3d0e7a956afb6f913466e96bd462eff0c92ad4c6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat May 1 17:46:03 2021 +0200
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".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 May 2021 18:00:06 +0200 |
parents | d3cabf12c991 |
children | 138e9caf4a7a |
comparison
equal
deleted
inserted
replaced
24562:557e50935ce4 | 24563:30ad18017e1c |
---|---|
159 { | 159 { |
160 params.clean = TRUE; | 160 params.clean = TRUE; |
161 break; | 161 break; |
162 } | 162 } |
163 #endif | 163 #endif |
164 #ifdef MSWIN | |
165 // Need to find "-register" before loading any libraries. | |
166 for (i = 1; i < argc; ++i) | |
167 if (STRICMP(argv[i] + 1, "register") == 0 | |
168 && (argv[i][0] == '-' || argv[i][0] == '/')) | |
169 { | |
170 found_register_arg = TRUE; | |
171 break; | |
172 } | |
173 #endif | |
174 | |
175 /* | |
176 * Various initialisations shared with tests. | |
177 */ | |
164 common_init(¶ms); | 178 common_init(¶ms); |
165 | 179 |
166 #ifdef VIMDLL | 180 #ifdef VIMDLL |
167 // Check if the current executable file is for the GUI subsystem. | 181 // Check if the current executable file is for the GUI subsystem. |
168 gui.starting = mch_is_gui_executable(); | 182 gui.starting = mch_is_gui_executable(); |