diff options
author | marha <marha@users.sourceforge.net> | 2015-06-28 12:59:18 +0200 |
---|---|---|
committer | Mike DePaulo <mikedep333@gmail.com> | 2015-06-30 22:55:48 -0400 |
commit | de1b34b708c74709fcea10fd84408ea794cbb20c (patch) | |
tree | 278bb6cba5f8173f806a94f2733d34a20f75561e | |
parent | 6fe71499cd506c11a378c339d1117630c85ab96c (diff) | |
download | vcxsrv-de1b34b708c74709fcea10fd84408ea794cbb20c.tar.gz vcxsrv-de1b34b708c74709fcea10fd84408ea794cbb20c.tar.bz2 vcxsrv-de1b34b708c74709fcea10fd84408ea794cbb20c.zip |
After every output flush the file buffers
-rw-r--r-- | tools/plink/wincons.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/plink/wincons.c b/tools/plink/wincons.c index 508be3f8d..ea178de57 100644 --- a/tools/plink/wincons.c +++ b/tools/plink/wincons.c @@ -302,6 +302,7 @@ static void console_data_untrusted(HANDLE hout, const char *data, int len) DWORD dummy; /* FIXME: control-character filtering */ WriteFile(hout, data, len, &dummy, NULL); + FlushFileBuffers(hout); } int console_get_userpass_input(prompts_t *p, unsigned char *in, int inlen) @@ -407,6 +408,7 @@ int console_get_userpass_input(prompts_t *p, unsigned char *in, int inlen) if (!pr->echo) { DWORD dummy; WriteFile(hout, "\r\n", 2, &dummy, NULL); + FlushFileBuffers(hout); } if (len < 0) { |