]> granicus.if.org Git - vim/commitdiff
patch 7.4.1530 v7.4.1530
authorBram Moolenaar <Bram@vim.org>
Thu, 10 Mar 2016 15:33:31 +0000 (16:33 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 10 Mar 2016 15:33:31 +0000 (16:33 +0100)
Problem:    MS-Windows job_start() closes wrong handle.
Solution:   Close hThread on the process info. (Ken Takata)

src/os_win32.c
src/version.c

index a59cad2ca1a48ca9544c1d5f61fa4653f5a8d57e..50c242878bf4666d38477f46d0706060fe42d413 100644 (file)
@@ -5126,7 +5126,7 @@ mch_start_job(char *cmd, job_T *job, jobopt_T *options)
        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;
index c71133e912bef87fbe0e20b62b5ff23c0f27f07b..e1ee16dcef46ec8645937b1fa426d088e20fbd8b 100644 (file)
@@ -743,6 +743,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1530,
 /**/
     1529,
 /**/