From f6a975b9848e6f2e989befec1681c422df931b28 Mon Sep 17 00:00:00 2001 From: taynpg Date: Mon, 10 Feb 2025 23:19:28 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=AD=A3win=E7=BC=96?= =?UTF-8?q?=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- filecomplete.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filecomplete.cpp b/filecomplete.cpp index 85169cc..e4cfcf6 100644 --- a/filecomplete.cpp +++ b/filecomplete.cpp @@ -685,7 +685,7 @@ char* fc_readline() void enable_cur() { #if defined(OS_WINDOWS) - hConsole = GetStdHandle(STD_OUTPUT_HANDLE); + auto hConsole = GetStdHandle(STD_OUTPUT_HANDLE); if (hConsole == NULL) { fprintf(stderr, "[ERROR] Couldn't handle terminal\n"); exit(1); @@ -702,7 +702,7 @@ void enable_cur() void disable_cur() { #if defined(OS_WINDOWS) - hConsole = GetStdHandle(STD_OUTPUT_HANDLE); + auto hConsole = GetStdHandle(STD_OUTPUT_HANDLE); if (hConsole == NULL) { fprintf(stderr, "[ERROR] Couldn't handle terminal\n"); exit(1);