comparison src/os_win32.c @ 28672:e4de5b5193b4 v8.2.4860

patch 8.2.4860: MS-Windows: always uses current directory for executables Commit: https://github.com/vim/vim/commit/05cf63e9bdca1ac070df3e7d9c6dfc45e68ac916 Author: Yasuhiro Matsumoto <mattn.jp@gmail.com> Date: Tue May 3 11:02:28 2022 +0100 patch 8.2.4860: MS-Windows: always uses current directory for executables Problem: MS-Windows: always uses current directory for executables. Solution: Check the NoDefaultCurrentDirectoryInExePath environment variable. (Yasuhiro Matsumoto, closes #10341)
author Bram Moolenaar <Bram@vim.org>
date Tue, 03 May 2022 12:15:04 +0200
parents f73a9bdff3a3
children 99729fe344f7
comparison
equal deleted inserted replaced
28671:5865b00cca76 28672:e4de5b5193b4
2235 if (pathbuf == NULL) 2235 if (pathbuf == NULL)
2236 { 2236 {
2237 retval = FALSE; 2237 retval = FALSE;
2238 goto theend; 2238 goto theend;
2239 } 2239 }
2240 STRCPY(pathbuf, ".;"); 2240
2241 if (mch_getenv("NoDefaultCurrentDirectoryInExePath") == NULL)
2242 STRCPY(pathbuf, ".;");
2243 else
2244 *pathbuf = NUL;
2241 STRCAT(pathbuf, p); 2245 STRCAT(pathbuf, p);
2242 } 2246 }
2243 } 2247 }
2244 2248
2245 /* 2249 /*