mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 09:54:49 +00:00
osinfo_win compiles again
This commit is contained in:
@@ -369,9 +369,8 @@ proc getFileSize*(file: string): biggestInt =
|
||||
var fileData: TWIN32_FIND_DATA
|
||||
|
||||
when useWinUnicode:
|
||||
var aa = allocWideCString(file)
|
||||
var aa = newWideCString(file)
|
||||
var hFile = FindFirstFileW(aa, fileData)
|
||||
dealloc aa
|
||||
else:
|
||||
var hFile = FindFirstFileA(file, fileData)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user