summaryrefslogtreecommitdiff
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-10 16:33:31 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-10 16:33:31 +0100
commit75578a388d2aff59dc330ceccd8894c79b4bc735 (patch)
tree31abd2f94f5bb3978b3e743068412a0ddecff615 /src/os_win32.c
parent29fd03878c41526a586d77b3f3cd7938d26297af (diff)
downloadvim-75578a388d2aff59dc330ceccd8894c79b4bc735.zip
patch 7.4.1530
Problem: MS-Windows job_start() closes wrong handle. Solution: Close hThread on the process info. (Ken Takata)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_win32.c b/src/os_win32.c
index a59cad2ca..50c242878 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -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;