]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.113 v7.3.113
authorBram Moolenaar <Bram@vim.org>
Wed, 9 Feb 2011 13:47:03 +0000 (14:47 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 9 Feb 2011 13:47:03 +0000 (14:47 +0100)
Problem:    Windows: Fall back directory for creating temp file is wrong.
Solution:   Use "." instead of empty string. (Hong Xu)

src/fileio.c
src/version.c

index 0c7b00c2c31f781a1fd6cfafa0f5ed6b0c7d5288..1360fde0cc2d043247d60d81acb55fac47ddf900 100644 (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)
index ff5db0aa048138d9e922442b087ae7a1899fa1eb..2dd143b5a93231ba8e2c567cf49603e49ab784ea 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    113,
 /**/
     112,
 /**/