diff options
author | slangmgh <37659406+slangmgh@users.noreply.github.com> | 2020-05-03 15:46:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-03 09:46:42 +0200 |
commit | b447ff78604a7177744341cdf8758a4d25dc72be (patch) | |
tree | aefbc3d0bde3d368e0add6e095394557a67a662f /lib/pure/os.nim | |
parent | 49b28f19978b45e4a8868e68a07b8f28807e4705 (diff) | |
download | Nim-b447ff78604a7177744341cdf8758a4d25dc72be.tar.gz |
Fix #14201 (#14202)
Diffstat (limited to 'lib/pure/os.nim')
-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 |