8b9a1c
To: vim_dev@googlegroups.com
8b9a1c
Subject: Patch 7.4.077
8b9a1c
Fcc: outbox
8b9a1c
From: Bram Moolenaar <Bram@moolenaar.net>
8b9a1c
Mime-Version: 1.0
8b9a1c
Content-Type: text/plain; charset=UTF-8
8b9a1c
Content-Transfer-Encoding: 8bit
8b9a1c
------------
8b9a1c
8b9a1c
Patch 7.4.077
8b9a1c
Problem:    DOS installer creates shortcut without a path, resulting in the
8b9a1c
            current directory to be C:\Windows\system32.
8b9a1c
Solution:   Use environment variables.
8b9a1c
Files:      src/dosinst.c
8b9a1c
    
8b9a1c
8b9a1c
*** ../vim-7.4.076/src/dosinst.c	2013-05-06 04:06:04.000000000 +0200
8b9a1c
--- src/dosinst.c	2013-11-06 18:18:47.000000000 +0100
8b9a1c
***************
8b9a1c
*** 1773,1781 ****
8b9a1c
  
8b9a1c
  /*
8b9a1c
   * We used to use "homedir" as the working directory, but that is a bad choice
8b9a1c
!  * on multi-user systems.  Not specifying a directory appears to work best.
8b9a1c
   */
8b9a1c
! #define WORKDIR ""
8b9a1c
  
8b9a1c
  /*
8b9a1c
   * Create shortcut(s) in the Start Menu\Programs\Vim folder.
8b9a1c
--- 1773,1783 ----
8b9a1c
  
8b9a1c
  /*
8b9a1c
   * We used to use "homedir" as the working directory, but that is a bad choice
8b9a1c
!  * on multi-user systems.  However, not specifying a directory results in the
8b9a1c
!  * current directory to be c:\Windows\system32 on Windows 7. Use environment
8b9a1c
!  * variables instead.
8b9a1c
   */
8b9a1c
! #define WORKDIR "%HOMEDRIVE%%HOMEPATH%"
8b9a1c
  
8b9a1c
  /*
8b9a1c
   * Create shortcut(s) in the Start Menu\Programs\Vim folder.
8b9a1c
*** ../vim-7.4.076/src/version.c	2013-11-07 04:46:43.000000000 +0100
8b9a1c
--- src/version.c	2013-11-07 04:47:42.000000000 +0100
8b9a1c
***************
8b9a1c
*** 740,741 ****
8b9a1c
--- 740,743 ----
8b9a1c
  {   /* Add new patch number below this line */
8b9a1c
+ /**/
8b9a1c
+     77,
8b9a1c
  /**/
8b9a1c
8b9a1c
-- 
8b9a1c
JOHN CLEESE PLAYED: SECOND SOLDIER WITH A KEEN INTEREST IN BIRDS, LARGE MAN
8b9a1c
                    WITH DEAD BODY, BLACK KNIGHT, MR NEWT (A VILLAGE
8b9a1c
                    BLACKSMITH INTERESTED IN BURNING WITCHES), A QUITE
8b9a1c
                    EXTRAORDINARILY RUDE FRENCHMAN, TIM THE WIZARD, SIR
8b9a1c
                    LAUNCELOT
8b9a1c
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
8b9a1c
8b9a1c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
8b9a1c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
8b9a1c
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
8b9a1c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///