diff options
-rw-r--r-- | lib/pure/os.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim index f267e4d01..449ae1d84 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -1079,7 +1079,7 @@ when defined(windows) and not weirdTarget: template findNextFile(a, b: untyped): untyped = findNextFileA(a, b) template getCommandLine(): untyped = getCommandLineA() - template getFilename(f: untyped): untyped = $f.cFileName + template getFilename(f: untyped): untyped = $cstring(addr f.cFileName) proc skipFindData(f: WIN32_FIND_DATA): bool {.inline.} = # Note - takes advantage of null delimiter in the cstring |