Skip to content

Commit 088d645

Browse files
committed
Fix FILE_TYPE_CHAR build error after CsWin32 update.
1 parent fd73cb7 commit 088d645

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/NativeMethods.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ SetConsoleMode
1414
SetConsoleOutputCP
1515
WriteFile
1616

17+
FILE_TYPE
1718
WIN32_ERROR
1819

1920
CTRL_BREAK_EVENT
2021
CTRL_C_EVENT
2122
CTRL_CLOSE_EVENT
2223
CTRL_SHUTDOWN_EVENT
23-
FILE_TYPE_CHAR

src/core/Terminals/Windows/WindowsVirtualTerminal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,6 @@ public override unsafe bool IsHandleValid(SafeHandle handle, bool write)
231231
public override bool IsHandleInteractive(SafeHandle handle)
232232
{
233233
// Note that this also returns true for invalid handles.
234-
return GetFileType(handle) == FILE_TYPE_CHAR && GetConsoleMode(handle, out _);
234+
return GetFileType(handle) == FILE_TYPE.FILE_TYPE_CHAR && GetConsoleMode(handle, out _);
235235
}
236236
}

0 commit comments

Comments
 (0)