Skip to content

Commit

Permalink
osinfo_win compiles again
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed May 20, 2013
1 parent e3335f4 commit 451a62f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/impure/osinfo_win.nim
Expand Up @@ -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)

Expand Down

0 comments on commit 451a62f

Please sign in to comment.