summaryrefslogtreecommitdiffstats
path: root/source/ap/vim/patches/7.3.113
blob: a4383ad92fea7d9185ac00eb941c4ccec94f71ba (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
To: vim_dev@googlegroups.com
Subject: Patch 7.3.113
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.3.113
Problem:    Windows: Fall back directory for creating temp file is wrong.
Solution:   Use "." instead of empty string. (Hong Xu)
Files:	    src/fileio.c


*** ../vim-7.3.112/src/fileio.c	2011-01-17 20:08:03.000000000 +0100
--- src/fileio.c	2011-02-06 13:14:25.000000000 +0100
***************
*** 7459,7465 ****
  
      STRCPY(itmp, "");
      if (GetTempPath(_MAX_PATH, szTempFile) == 0)
! 	szTempFile[0] = NUL;	/* GetTempPath() failed, use current dir */
      strcpy(buf4, "VIM");
      buf4[2] = extra_char;   /* make it "VIa", "VIb", etc. */
      if (GetTempFileName(szTempFile, buf4, 0, itmp) == 0)
--- 7459,7468 ----
  
      STRCPY(itmp, "");
      if (GetTempPath(_MAX_PATH, szTempFile) == 0)
!     {
! 	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)
*** ../vim-7.3.112/src/version.c	2011-02-01 21:54:56.000000000 +0100
--- src/version.c	2011-02-09 14:46:12.000000000 +0100
***************
*** 716,717 ****
--- 716,719 ----
  {   /* Add new patch number below this line */
+ /**/
+     113,
  /**/

-- 
'Psychologist' -- Someone who looks at everyone else when
an attractive woman enters the room.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///