memfiles compiles again on windows
This commit is contained in:
parent
b0ad08013d
commit
5c91f6ff2c
1 changed files with 1 additions and 3 deletions
|
|
@ -69,9 +69,7 @@ proc open*(filename: string, mode: TFileMode = fmRead,
|
||||||
0)
|
0)
|
||||||
|
|
||||||
when useWinUnicode:
|
when useWinUnicode:
|
||||||
var f = allocWideCString(filename)
|
result.fHandle = callCreateFile(CreateFileW, newWideCString(filename))
|
||||||
result.fHandle = callCreateFile(CreateFileW, f)
|
|
||||||
dealloc f
|
|
||||||
else:
|
else:
|
||||||
result.fHandle = callCreateFile(CreateFileA, filename)
|
result.fHandle = callCreateFile(CreateFileA, filename)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue