diff options
| author | ruki <[email protected]> | 2020-05-31 20:39:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-31 20:39:44 +0800 |
| commit | d13d6f467aff3fa3ed8eacfea6757fc6b88780df (patch) | |
| tree | 7e38ee7adc64661d9d7a42fed158b0c1c410f22a /core/src | |
| parent | 58096008c109e965f0b8ddcc84410d02ee9b5daa (diff) | |
fix compile errors
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/xmake/io/iscygpty.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
