mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 19:22:40 +00:00
memfiles compiles again on windows
This commit is contained in:
@@ -69,9 +69,7 @@ proc open*(filename: string, mode: TFileMode = fmRead,
|
||||
0)
|
||||
|
||||
when useWinUnicode:
|
||||
var f = allocWideCString(filename)
|
||||
result.fHandle = callCreateFile(CreateFileW, f)
|
||||
dealloc f
|
||||
result.fHandle = callCreateFile(CreateFileW, newWideCString(filename))
|
||||
else:
|
||||
result.fHandle = callCreateFile(CreateFileA, filename)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user