summary refs log tree commit diff stats
path: root/chardev/char-file.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2017-01-04 21:34:42 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2017-06-02 11:33:52 +0400
commit541815ff7f54f45a60d058b1c499c4affff094e0 (patch)
treea50d8c62275dca04fc30127199ac7a4b507faa70 /chardev/char-file.c
parentef0f272f38e1e534dd05a5a611aa0eb15dc60cc1 (diff)
downloadfocaccia-qemu-541815ff7f54f45a60d058b1c499c4affff094e0.tar.gz
focaccia-qemu-541815ff7f54f45a60d058b1c499c4affff094e0.zip
char-win: close file handle except with console
Only the console handle shouldn't be closed, however, the "file" handle
should.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'chardev/char-file.c')
-rw-r--r--chardev/char-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chardev/char-file.c b/chardev/char-file.c
index 8bae25350d..aed4ae1569 100644
--- a/chardev/char-file.c
+++ b/chardev/char-file.c
@@ -65,7 +65,7 @@ static void qmp_chardev_open_file(Chardev *chr,
         return;
     }
 
-    qemu_chr_open_win_file(chr, out);
+    win_chr_set_file(chr, out, false);
 #else
     int flags, in = -1, out;