diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-10 16:33:31 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-10 16:33:31 +0100 |
commit | 75578a388d2aff59dc330ceccd8894c79b4bc735 (patch) | |
tree | 31abd2f94f5bb3978b3e743068412a0ddecff615 /src/os_win32.c | |
parent | 29fd03878c41526a586d77b3f3cd7938d26297af (diff) | |
download | vim-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.c | 2 |
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; |