osinfo_win compiles again

This commit is contained in:
Araq
2013-05-20 17:26:01 +02:00
parent 911a29d51e
commit 4ee0d8f57d

View File

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