From b447ff78604a7177744341cdf8758a4d25dc72be Mon Sep 17 00:00:00 2001 From: slangmgh <37659406+slangmgh@users.noreply.github.com> Date: Sun, 3 May 2020 15:46:42 +0800 Subject: [PATCH] Fix #14201 (#14202) --- lib/pure/os.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/os.nim b/lib/pure/os.nim index f267e4d01a..449ae1d841 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