0
0
mirror of https://github.com/vim/vim.git synced 2025-09-03 21:23:48 -04:00

updated for version 7.3.113

Problem:    Windows: Fall back directory for creating temp file is wrong.
Solution:   Use "." instead of empty string. (Hong Xu)
This commit is contained in:
Bram Moolenaar 2011-02-09 14:47:03 +01:00
parent 1d87f516f2
commit b18919146d
2 changed files with 6 additions and 1 deletions

View File

@ -7459,7 +7459,10 @@ vim_tempname(extra_char)
STRCPY(itmp, "");
if (GetTempPath(_MAX_PATH, szTempFile) == 0)
szTempFile[0] = NUL; /* GetTempPath() failed, use current dir */
{
szTempFile[0] = '.'; /* GetTempPath() failed, use current dir */
szTempFile[1] = NUL;
}
strcpy(buf4, "VIM");
buf4[2] = extra_char; /* make it "VIa", "VIb", etc. */
if (GetTempFileName(szTempFile, buf4, 0, itmp) == 0)

View File

@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
113,
/**/
112,
/**/