home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.4 / 7.4.160 < prev    next >
Encoding:
Internet Message Format  |  2014-01-23  |  2.0 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.4.160
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.4.160
  11. Problem:    Win32: Crash when executing external command.
  12. Solution:   Only close the handle when it was created. (Yasuhiro Matsumoto)
  13. Files:        src/os_win32.c
  14.  
  15.  
  16. *** ../vim-7.4.159/src/os_win32.c    2014-01-12 13:24:46.000000000 +0100
  17. --- src/os_win32.c    2014-01-24 19:54:35.778219160 +0100
  18. ***************
  19. *** 4627,4632 ****
  20. --- 4627,4633 ----
  21.           DWORD        flags = CREATE_NEW_CONSOLE;
  22.           char_u        *p;
  23.   
  24. +         ZeroMemory(&si, sizeof(si));
  25.           si.cb = sizeof(si);
  26.           si.lpReserved = NULL;
  27.           si.lpDesktop = NULL;
  28. ***************
  29. *** 4723,4731 ****
  30.           if (newcmd != cmdbase)
  31.           vim_free(newcmd);
  32.   
  33. !         if (si.hStdInput != NULL)
  34.           {
  35. !         /* Close the handle to \\.\NUL */
  36.           CloseHandle(si.hStdInput);
  37.           }
  38.           /* Close the handles to the subprocess, so that it goes away */
  39. --- 4724,4732 ----
  40.           if (newcmd != cmdbase)
  41.           vim_free(newcmd);
  42.   
  43. !         if (si.dwFlags == STARTF_USESTDHANDLES && si.hStdInput != NULL)
  44.           {
  45. !         /* Close the handle to \\.\NUL created above. */
  46.           CloseHandle(si.hStdInput);
  47.           }
  48.           /* Close the handles to the subprocess, so that it goes away */
  49. *** ../vim-7.4.159/src/version.c    2014-01-23 22:45:54.608127182 +0100
  50. --- src/version.c    2014-01-24 19:52:46.946216170 +0100
  51. ***************
  52. *** 740,741 ****
  53. --- 740,743 ----
  54.   {   /* Add new patch number below this line */
  55. + /**/
  56. +     160,
  57.   /**/
  58.  
  59. -- 
  60. hundred-and-one symptoms of being an internet addict:
  61. 209. Your house stinks because you haven't cleaned it in a week.
  62.  
  63.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  64. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  65. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  66.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  67.