changeset 8479:9f63e4506c40 v7.4.1530

commit https://github.com/vim/vim/commit/75578a388d2aff59dc330ceccd8894c79b4bc735 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 10 16:33:31 2016 +0100 patch 7.4.1530 Problem: MS-Windows job_start() closes wrong handle. Solution: Close hThread on the process info. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Thu, 10 Mar 2016 16:45:04 +0100
parents 558495b5c98e
children 70fabc40d228
files src/os_win32.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -5126,7 +5126,7 @@ mch_start_job(char *cmd, job_T *job, job
 	jo = NULL;
     }
     ResumeThread(pi.hThread);
-    CloseHandle(job->jv_proc_info.hThread);
+    CloseHandle(pi.hThread);
     job->jv_proc_info = pi;
     job->jv_job_object = jo;
     job->jv_status = JOB_STARTED;
--- a/src/version.c
+++ b/src/version.c
@@ -744,6 +744,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1530,
+/**/
     1529,
 /**/
     1528,