summary refs log tree commit diff stats
path: root/lib/pure/os.nim
diff options
context:
space:
mode:
authorslangmgh <37659406+slangmgh@users.noreply.github.com>2020-05-03 15:46:42 +0800
committerGitHub <noreply@github.com>2020-05-03 09:46:42 +0200
commitb447ff78604a7177744341cdf8758a4d25dc72be (patch)
treeaefbc3d0bde3d368e0add6e095394557a67a662f /lib/pure/os.nim
parent49b28f19978b45e4a8868e68a07b8f28807e4705 (diff)
downloadNim-b447ff78604a7177744341cdf8758a4d25dc72be.tar.gz
Fix #14201 (#14202)
Diffstat (limited to 'lib/pure/os.nim')
-rw-r--r--lib/pure/os.nim2
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