summary refs log tree commit diff stats
path: root/lib/pure/os.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pure/os.nim')
-rw-r--r--lib/pure/os.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index c1b71c202..9b08fea6f 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -356,8 +356,8 @@ when defined(windows):
 
   proc skipFindData(f: TWIN32_FIND_DATA): bool {.inline.} =
     const dot = ord('.')
-    result = f.cFilename[0].int == dot and(f.cFilename[1].int == 0 or
-             f.cFilename[1].int == dot and f.cFilename[2].int == 0)
+    result = f.cFileName[0].int == dot and(f.cFileName[1].int == 0 or
+             f.cFileName[1].int == dot and f.cFileName[2].int == 0)
 
 proc existsFile*(filename: string): bool {.rtl, extern: "nos$1",
                                           tags: [FReadDir].} =