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