From d13d6f467aff3fa3ed8eacfea6757fc6b88780df Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 31 May 2020 20:39:44 +0800 Subject: fix compile errors --- core/src/xmake/io/iscygpty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/xmake/io/iscygpty.c b/core/src/xmake/io/iscygpty.c index 7ad3e6c2c..5960cbbe9 100644 --- a/core/src/xmake/io/iscygpty.c +++ b/core/src/xmake/io/iscygpty.c @@ -120,7 +120,7 @@ int is_cygpty(HANDLE h) if (GetFileType(h) != FILE_TYPE_PIPE) { return 0; } - nameinfo = malloc(size + sizeof(WCHAR)); + nameinfo = (FILE_NAME_INFO*)malloc(size + sizeof(WCHAR)); if (nameinfo == NULL) { return 0; } -- cgit v1.3.1