38b3668
To: vim_dev@googlegroups.com
38b3668
Subject: Patch 7.3.113
38b3668
Fcc: outbox
38b3668
From: Bram Moolenaar <Bram@moolenaar.net>
38b3668
Mime-Version: 1.0
38b3668
Content-Type: text/plain; charset=UTF-8
38b3668
Content-Transfer-Encoding: 8bit
38b3668
------------
38b3668
38b3668
Patch 7.3.113
38b3668
Problem:    Windows: Fall back directory for creating temp file is wrong.
38b3668
Solution:   Use "." instead of empty string. (Hong Xu)
38b3668
Files:	    src/fileio.c
38b3668
38b3668
38b3668
*** ../vim-7.3.112/src/fileio.c	2011-01-17 20:08:03.000000000 +0100
38b3668
--- src/fileio.c	2011-02-06 13:14:25.000000000 +0100
38b3668
***************
38b3668
*** 7459,7465 ****
38b3668
  
38b3668
      STRCPY(itmp, "");
38b3668
      if (GetTempPath(_MAX_PATH, szTempFile) == 0)
38b3668
! 	szTempFile[0] = NUL;	/* GetTempPath() failed, use current dir */
38b3668
      strcpy(buf4, "VIM");
38b3668
      buf4[2] = extra_char;   /* make it "VIa", "VIb", etc. */
38b3668
      if (GetTempFileName(szTempFile, buf4, 0, itmp) == 0)
38b3668
--- 7459,7468 ----
38b3668
  
38b3668
      STRCPY(itmp, "");
38b3668
      if (GetTempPath(_MAX_PATH, szTempFile) == 0)
38b3668
!     {
38b3668
! 	szTempFile[0] = '.';	/* GetTempPath() failed, use current dir */
38b3668
! 	szTempFile[1] = NUL;
38b3668
!     }
38b3668
      strcpy(buf4, "VIM");
38b3668
      buf4[2] = extra_char;   /* make it "VIa", "VIb", etc. */
38b3668
      if (GetTempFileName(szTempFile, buf4, 0, itmp) == 0)
38b3668
*** ../vim-7.3.112/src/version.c	2011-02-01 21:54:56.000000000 +0100
38b3668
--- src/version.c	2011-02-09 14:46:12.000000000 +0100
38b3668
***************
38b3668
*** 716,717 ****
38b3668
--- 716,719 ----
38b3668
  {   /* Add new patch number below this line */
38b3668
+ /**/
38b3668
+     113,
38b3668
  /**/
38b3668
38b3668
-- 
38b3668
'Psychologist' -- Someone who looks at everyone else when
38b3668
an attractive woman enters the room.
38b3668
38b3668
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
38b3668
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
38b3668
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
38b3668
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///