This commit is contained in:
slangmgh 2020-05-03 15:46:42 +08:00 • committed by GitHub
commit b447ff7860
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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