1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v2: fix Windows errors

This commit is contained in:
Alexey
2020-03-28 12:19:38 +03:00
committed by GitHub
parent 4541f29019
commit cedf185b41
5 changed files with 7 additions and 8 deletions

View File

@@ -106,7 +106,7 @@ pub fn ls(path string) ?[]string {
if first_filename != '.' && first_filename != '..' {
dir_files << first_filename
}
for C.FindNextFile(h_find_files, voidptr(&find_file_data)) {
for C.FindNextFile(h_find_files, voidptr(&find_file_data)) > 0 {
filename := string_from_wide(&u16(find_file_data.cFileName))
if filename != '.' && filename != '..' {
dir_files << filename.clone()