Sometimes crash or hang.

diff -r 89b3a7ef9622 src/os_win32.c
--- a/src/os_win32.c    Thu Jan 23 22:45:58 2014 +0100
+++ b/src/os_win32.c    Fri Jan 24 12:43:18 2014 +0900
@@ -4722,8 +4722,7 @@
 
            if (newcmd != cmdbase)
                vim_free(newcmd);
-
-           if (si.hStdInput != NULL)
+           if (si.dwFlags == STARTF_USESTDHANDLES && si.hStdInput != NULL)
            {
                /* Close the handle to \\.\NUL */
                CloseHandle(si.hStdInput);

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui