aboutsummaryrefslogtreecommitdiff
path: root/chardev/char-console.c
diff options
context:
space:
mode:
Diffstat (limited to 'chardev/char-console.c')
-rw-r--r--chardev/char-console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chardev/char-console.c b/chardev/char-console.c
index c824937fe6..8d972c1506 100644
--- a/chardev/char-console.c
+++ b/chardev/char-console.c
@@ -29,7 +29,7 @@ static void qemu_chr_open_win_con(Chardev *chr,
bool *be_opened,
Error **errp)
{
- qemu_chr_open_win_file(chr, GetStdHandle(STD_OUTPUT_HANDLE));
+ win_chr_set_file(chr, GetStdHandle(STD_OUTPUT_HANDLE), true);
}
static void char_console_class_init(ObjectClass *oc, void *data)