diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-06-04 22:06:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-06-04 22:06:24 +0000 |
commit | 75c50c46a69d25ac94a55bae8a9642316d52be00 (patch) | |
tree | 2cefbd38adf2f259b314f40ff4c310713e07d4d1 /src/if_cscope.c | |
parent | 51485f06246966898f7c00e2e53b1ba4c6855cf7 (diff) | |
download | vim-git-75c50c46a69d25ac94a55bae8a9642316d52be00.tar.gz |
updated for version 7.0079v7.0079
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r-- | src/if_cscope.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c index 3e5e26ce5..7163c8a03 100644 --- a/src/if_cscope.c +++ b/src/if_cscope.c @@ -559,7 +559,7 @@ cs_check_for_connections() static int cs_check_for_tags() { - return (p_tags[0] != NUL && curbuf->b_p_tags != NUL); + return (p_tags[0] != NUL && curbuf->b_p_tags != NULL); } /* cs_check_for_tags */ @@ -1202,6 +1202,9 @@ clear_csinfo(i) csinfo[i].pid = -1; csinfo[i].fr_fp = NULL; csinfo[i].to_fp = NULL; +#if defined(WIN32) + csinfo[i].hProc = NULL; +#endif } #ifndef UNIX @@ -2090,7 +2093,7 @@ cs_release_csp(i, freefnpp) (void)fflush(csinfo[i].to_fp); } /* give cscope chance to exit normally */ - if (csinfo[i].hProc > 0 + if (csinfo[i].hProc != NULL && WaitForSingleObject(csinfo[i].hProc, 1000) == WAIT_TIMEOUT) TerminateProcess(csinfo[i].hProc, 0); #endif |