Skip to content

Commit

Permalink
nimgrab tool: fixes for Nim v0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Sep 27, 2018
1 parent f6c5c63 commit 72e15ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/urldownloader.nim
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ proc `$`(bstr: LPWSTR): string =
if count == 0:
raiseOsError(osLastError())
else:
result = newStringOfCap(count + 8)
result = newString(count + 8)
let res = WideCharToMultiByte(CP_UTF8, 0, bstr, -1, addr(result[0]), count,
nil, nil)
if res == 0:
Expand Down

0 comments on commit 72e15ff

Please sign in to comment.